#include using namespace std; int main() { cin.tie(0); cout.tie(0); ios::sync_with_stdio(false); int H, W; cin >> H >> W; if(H < 7) { cout << "Yes\n"; } else if(H == 7) { cout << (W < 30 ? "Yes" : "Late") << '\n'; } else if(H == 8) { cout << (W < 30 ? "Late" : "No") << '\n'; } else { cout << "No\n"; } return 0; }