#include #include #include #include #include #include #include #include #define vv(a, b, c, d) vector >(a, vector(b, c)) #define vvi std::vector > #define vvl std::vector > #define MODs 1000000007; typedef long long int ll; using namespace std; int main(int argc, char const *argv[]) { ll A, B; std::cin >> A; std::cin >> B; if(B/40==A) std::cout << 1 << '\n'; else std::cout << 2 << '\n'; return 0; }