#include<iostream> using namespace std; int main(){ string a,b; cin>>a>>b; if(a==b){ cout<<"yes"; } else{ cout<<"no"; } return 0; }