#include<bits/stdc++.h>
using namespace std;
int main()
{
	
	int a;
	cin>>a;
	if(a>=20 && a<=30){
		cout<<"OK"<<endl;
	}else{
		cout<<"NO"<<endl;
	}
	
		return 0;
	
}
/**************************************************************
	Problem: 1302
	User: ct001
	Language: C++
	Result: Accepted
	Time:7 ms
	Memory:2072 kb
****************************************************************/