int main() { string s; while (cin >> s) { if (valid_id(s)) cout << s << " is valid.\n"; else cout << s << " is NOT valid.\n"; } return 0; }