#include <bits/stdc++.h>
using namespace std;
using ll = long long;
const int mod = 1e9 + 7;
const int inf = (1 << 30) - 1;
const ll infll = (1LL << 61) - 1;

ll A, B;

int main()
{
    cin >> A >> B;
    if (B < 400 * A + 400)
        cout << 1 << endl;
    else
        cout << 2 << endl;
}