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