#include <iostream>
using namespace std;
int main() {
string nome;
float distanza=0;
int conta=0;
do {
cin>> nome;
cin>> distanza;
if (distanza> 30)
cout<< nome + " ";
} while (distanza!=0);
// your code goes here
return 0;
}
I2luY2x1ZGUgPGlvc3RyZWFtPgp1c2luZyBuYW1lc3BhY2Ugc3RkOwoKaW50IG1haW4oKSB7CglzdHJpbmcgbm9tZTsKCWZsb2F0IGRpc3RhbnphPTA7CglpbnQgY29udGE9MDsKCWRvIHsKCQljaW4+PiBub21lOwoJCWNpbj4+IGRpc3RhbnphOwoJCWlmIChkaXN0YW56YT4gMzApCgkJCWNvdXQ8PCAgbm9tZSArICIgIjsKCQkJCgl9IHdoaWxlIChkaXN0YW56YSE9MCk7CgkKCQoJLy8geW91ciBjb2RlIGdvZXMgaGVyZQoJcmV0dXJuIDA7Cn0=