#include "bits/stdc++.h" using namespace std; #define int long long void solve(){ int a, b; cin >> a >> b; int ans = 23; if (a > 8 or (a == 8 and b >= 22)) ans++; cout << ans; } signed main(){ ios_base::sync_with_stdio(0); cin.tie(0); cout.tie(0); int T = 1; // cin >> T; while(T--) solve(); return 0; }