using namespace std; long long n; int main() { cin>>n; if(n%4==0&&n%100!=0||n%400==0)cout<<"Nam nhuan"; else cout<< "Khong la nam nhuan";
return 0;
}