#include <iostream>
using namespace std; // consider removing this line in serious projects
int main() {
int intNum = 0;
int example=42;
cin >> intNum;
while (intNum != example) {
if (intNum > example){
cout<<intNum<<"猜大了"<<endl;
cin>>intNum;
}
if(intNum<example){
cout<<intNum<<"猜小了"<<endl;
cin>>intNum;
}
}
cout<<intNum<<"猜对了";
return 0;
}
I2luY2x1ZGUgPGlvc3RyZWFtPgp1c2luZyBuYW1lc3BhY2Ugc3RkOyAvLyBjb25zaWRlciByZW1vdmluZyB0aGlzIGxpbmUgaW4gc2VyaW91cyBwcm9qZWN0cwoKaW50IG1haW4oKSB7CglpbnQgaW50TnVtID0gMDsKCWludCBleGFtcGxlPTQyOwoJY2luID4+IGludE51bTsKCXdoaWxlIChpbnROdW0gIT0gZXhhbXBsZSkgewoJCWlmIChpbnROdW0gPiBleGFtcGxlKXsKCQkJY291dDw8aW50TnVtPDwi54yc5aSn5LqGIjw8ZW5kbDsKCQkJY2luPj5pbnROdW07CgkJfQoJCWlmKGludE51bTxleGFtcGxlKXsKCQkJY291dDw8aW50TnVtPDwi54yc5bCP5LqGIjw8ZW5kbDsKCQkJY2luPj5pbnROdW07CgkJfQoJfQogICAgY291dDw8aW50TnVtPDwi54yc5a+55LqGIjsKCXJldHVybiAwOwp9