#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<<"对了";
return 0;
}
I2luY2x1ZGUgPGlvc3RyZWFtPgp1c2luZyBuYW1lc3BhY2Ugc3RkOyAvLyBjb25zaWRlciByZW1vdmluZyB0aGlzIGxpbmUgaW4gc2VyaW91cyBwcm9qZWN0cwoKaW50IG1haW4oKSB7CglpbnQgaW50TnVtID0gMDsKCWludCBleGFtcGxlPTQyOwoJY2luID4+IGludE51bTsKCXdoaWxlIChpbnROdW0gIT0gZXhhbXBsZSkgewoJCWlmIChpbnROdW0gPj0gZXhhbXBsZSl7CgkJCWNvdXQ8PGludE51bTw8IueMnOWkp+S6hiI8PGVuZGw7CgkJCWNpbj4+aW50TnVtOwoJCX0KCQlpZihpbnROdW08PWV4YW1wbGUpewoJCQljb3V0PDxpbnROdW08PCLnjJzlsI/kuoYiPDxlbmRsOwoJCQljaW4+PmludE51bTsKCQl9Cgl9CiAgICBjb3V0PDwi5a+55LqGIjsKCXJldHVybiAwOwp9