#include using namespace std::literals::string_literals; using i64 = long long; using std::cout; using std::endl; using std::cin; template std::vector make_v(size_t a){return std::vector(a);} template auto make_v(size_t a,Ts... ts){ return std::vector(ts...))>(a,make_v(ts...)); } int main() { i64 a, b; scanf("%lld%lld", &a, &b); const int p = b / a; int A = std::abs(p - 40), B = std::abs(p - 1600); if(A < B) printf("1\n"); else printf("2\n"); return 0; }