#include using namespace std; int main() { int a, b; cin >> a >> b; if (b < 23) cout << 3 << endl; else if (b > 24) cout << 0 << endl; else cout << 25 - b << endl; return 0; }