w = input()
w = int(w)
if( w<=30 and w>=20) :
print("OK")
else:
print("NO")
/**************************************************************
Problem: 1302
User: mariooo
Language: Python
Result: Accepted
Time:89 ms
Memory:34244 kb
****************************************************************/