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