#include <iostream>
#include <sstream>
using namespace std;

static int test(const char *p) {
	istringstream iss(p);
	int argument;
	char more;
	if(iss >> argument) {
		if(iss >> more) {
			cerr<< p << ": arguments must be integer" << endl;
			return -1;
		} else {
			cout << p << " parsed as integer" << endl;
			return 0;
		}
	} else {
		cerr<< p << ": arguments must be integer" << endl;
		return -1;
	}
}

int main() {
	char inp[128];
	while(cin >> inp) {
		test(inp);
	}
	return 0;
}