#include <iostream>
#include <sstream>
#include <string>
using namespace std;
int main() {
istringstream iss("1 a 1 b 4 a 4 b 9");
cin.rdbuf(iss.rdbuf());
int num = 0;
char c;
while(cin >> num >> c || !cin.eof()) {
if(cin.fail()) {
cin.clear();
string dummy;
cin >> dummy;
continue;
}
cout << num << ", " << c << endl;
}
return 0;
}
ICAgICNpbmNsdWRlIDxpb3N0cmVhbT4KICAgICNpbmNsdWRlIDxzc3RyZWFtPgogICAgI2luY2x1ZGUgPHN0cmluZz4KICAgIHVzaW5nIG5hbWVzcGFjZSBzdGQ7CgogICAgaW50IG1haW4oKSB7CgoJICAgIGlzdHJpbmdzdHJlYW0gaXNzKCIxIGEgMSBiIDQgYSA0IGIgOSIpOwoJCWNpbi5yZGJ1Zihpc3MucmRidWYoKSk7CgkJaW50IG51bSA9IDA7CiAgICAgICAgY2hhciBjOwoJCXdoaWxlKGNpbiA+PiBudW0gPj4gYyB8fCAhY2luLmVvZigpKSB7CgkJCWlmKGNpbi5mYWlsKCkpIHsKCQkJCWNpbi5jbGVhcigpOwoJCQkJc3RyaW5nIGR1bW15OwoJCQkJY2luID4+IGR1bW15OwoJCQkJY29udGludWU7CgkJCX0KCQkJY291dCA8PCBudW0gPDwgIiwgIiA8PCBjIDw8IGVuZGw7CgkJfQoJCXJldHVybiAwOwoJfQo=