#include using namespace std; int main(void) { string a, b; cin>>a>>b; string str(a); int num = std::atoi(str.c_str()); if(num>12345){ cout<<"NG"<12345){ cout<<"NG"<=48&&a[i]<=57){ }else{ cout<<"NG"<=48&&b[i]<=57){ }else{ cout<<"NG"<