#include<bits/stdc++.h>
using namespace std;

bool dfs(int lm,int rm,int le,int re){
	if(re>=5&&le>=5){
		return true;
	}
//	cout<<lm<<rm<<le<<re<<endl;
	if(rm<=4&&le<=4&&!dfs(le+rm,re,lm,rm))return true;
	if(rm<=4&&re<=4&&!dfs(le,re+rm,lm,rm))return true;
	if(lm<=4&&le<=4&&!dfs(le+lm,re,lm,rm))return true;
	if(lm<=4&&re<=4&&!dfs(le,re+lm,lm,rm))return true;
	else return false;

}	

int main(){
int  li,ri,ln,rn;
cin>>li>>ri>>ln>>rn;

if(dfs(li,ri,ln,rn)){
	cout<<"ISONO"<<endl;
}
else cout<<"NAKAJIMA"<<endl;

return 0;
}

