#include #include using namespace std; bool NotDigit(string S){ for (int i=0;i'9'){ return true; } } return false; } int main(int argc, char* argv[]) { string A,B; cin>>A; cin>>B; if (NotDigit(A) || NotDigit(B)){ cout<<"NG"<12345 || b1>12345){ cout<<"NG"<0 && A[0]=='0' || b1>0 && B[0]=='0'){ cout<<"NG"<