#include #include #include #include using namespace std; bool check(string s) { istringstream ss(s); int t; ss >> t; ostringstream os; os << t; return os.str() == s; } int main() { string input; while(getline(cin, input)) { //istringstream ss(input); // ss >> input; int a, b; cin >> a >> b; if(check(input) && a <= atoi(input.c_str()) && atoi(input.c_str()) <= b) puts("YES"); else puts("NO"); getline(cin, input); } return 0; }