0
1
mirror of https://git.sb/baoshuo/OI-codes.git synced 2024-09-20 08:25:24 +00:00
OI-codes/Codeforces/1663/D/D.cpp

19 lines
322 B
C++

#include <iostream>
#include <string>
using std::cin;
using std::cout;
const char endl = '\n';
int x;
std::string s;
int main() {
std::ios::sync_with_stdio(false);
cin >> s >> x;
cout << (s == "ABC" && x < 2000 || s == "ARC" && x < 2800 || s == "AGC" && x >= 1200 ? "Yes" : "No") << endl;
return 0;
}