#include using namespace std; #define rep(i,n) for (int i=0; i<(int)(n); i++) #define all(vec) vec.begin(), vec.end() int main() { int a, b; scanf("%d\n%d", &a, &b); int TEISU = a/5000; if (TEISU == b/200000) printf("1\n"); else printf("2\n"); }