#include<bits/stdc++.h> using namespace std; int main(){ char a[1000]; char b[1000]; cin>>a>>b; if(strcmp(a,b)==0){ cout<<"yes"; } else{ cout<<"no"; } return 0; }