#include <iostream>
#include <string>
#include <fstream>
#include <sstream>
using namespace std;
void getIdFromFile (string filename, istream &is, ostream &os)
{
string name, n;
int id(0);
while(is >> n)
{
//ifstream ifs(filename);
stringstream ifs("sclaus 12 jblack 779 jbanno 334");
while(ifs >> name && ifs >> id && n != name)
{
id = 0;
}
if(id == 0)
cout << "ERROR" << endl;
else
cout << "ID= " << id << endl;
//return id;
}
}
int main() {
/*int id =*/ getIdFromFile("", cin, cout);
}
I2luY2x1ZGUgPGlvc3RyZWFtPgojaW5jbHVkZSA8c3RyaW5nPgojaW5jbHVkZSA8ZnN0cmVhbT4KI2luY2x1ZGUgPHNzdHJlYW0+Cgp1c2luZyBuYW1lc3BhY2Ugc3RkOwoKdm9pZCBnZXRJZEZyb21GaWxlIChzdHJpbmcgZmlsZW5hbWUsIGlzdHJlYW0gJmlzLCBvc3RyZWFtICZvcykgCnsKCXN0cmluZyBuYW1lLCBuOwoJaW50IGlkKDApOwoJd2hpbGUoaXMgPj4gbikKCXsKCQkvL2lmc3RyZWFtIGlmcyhmaWxlbmFtZSk7CgkJc3RyaW5nc3RyZWFtIGlmcygic2NsYXVzIDEyIGpibGFjayA3NzkgamJhbm5vIDMzNCIpOwoJCXdoaWxlKGlmcyA+PiBuYW1lICYmIGlmcyA+PiBpZCAmJiBuICE9IG5hbWUpCgkJewoJCQlpZCA9IDA7CgkJfQoJCWlmKGlkID09IDApCgkJCWNvdXQgPDwgIkVSUk9SIiA8PCBlbmRsOwoJCWVsc2UKCQkJY291dCA8PCAiSUQ9ICIgPDwgaWQgPDwgZW5kbDsKCQkvL3JldHVybiBpZDsKCX0KfQppbnQgbWFpbigpIHsKCS8qaW50IGlkID0qLyBnZXRJZEZyb21GaWxlKCIiLCBjaW4sIGNvdXQpOwp9