#include <iostream>
using namespace std;
bool isNumber(string s) {
if(s.size()==0) return false;
for(int i=0;i<s.size();i++) {
if((s[i]>='0' && s[i]<='9')==false) {
return false;
}
}
return true;
}
int main()
{
if(isNumber("1243")) {
cout << "It is a number!";
}
else {
cout << "It is not a number!";
}
return 0;
}
I2luY2x1ZGUgPGlvc3RyZWFtPgoKdXNpbmcgbmFtZXNwYWNlIHN0ZDsKCmJvb2wgaXNOdW1iZXIoc3RyaW5nIHMpIHsKICAgIGlmKHMuc2l6ZSgpPT0wKSByZXR1cm4gZmFsc2U7CiAgICBmb3IoaW50IGk9MDtpPHMuc2l6ZSgpO2krKykgewogICAgCWlmKChzW2ldPj0nMCcgJiYgc1tpXTw9JzknKT09ZmFsc2UpIHsKICAgICAgICAgICAgcmV0dXJuIGZhbHNlOwogICAgICAgIH0KICAgIH0KICAgIHJldHVybiB0cnVlOwp9CgppbnQgbWFpbigpCnsKICAgaWYoaXNOdW1iZXIoIjEyNDMiKSkgewogICAgICAgY291dCA8PCAiSXQgaXMgYSBudW1iZXIhIjsKICAgfQogICBlbHNlIHsKICAgICAgIGNvdXQgPDwgIkl0IGlzIG5vdCBhIG51bWJlciEiOwogICB9CiAgIHJldHVybiAwOwp9