#include #define int long long using namespace std; signed main() { string s; getline(cin, s); for (char x : s) { if (x >= '0' && x <= '9'); else if (x == '-'); else if (x == ' '); else exit(-1); } }