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