#include<iostream>
using namespace std;

//-1???ISONO WIN, 1???NAKAJIMA WIN
int dfs( int il, int ir, int nl, int nr, int turn = 0 ){
	//cout << il << " " << ir << " " << nl << " " << nr << " " << turn << endl;
	if( il > 4 && ir > 4 )
		return 1;
	if( nl > 4 && nr > 4 )
		return -1;

	//?£?????????????
	if( turn % 2 == 0 ){
		int win = 1;
		if( il < 5 ){
			if( nl < 5 )
				win = min(win, dfs( il, ir, nl + il, nr, turn + 1 ));
			if( nr < 5 )
				win = min(win, dfs( il, ir, nl, nr + il, turn + 1 ));
		}
		if( ir < 5 ){
			if( nl < 5 )
				win = min(win, dfs( il, ir, nl + ir, nr, turn + 1 ));
			if( nr < 5 )
				win = min(win, dfs( il, ir, nl, nr + ir, turn + 1 ));
		}
		return win;
	}
	//?????¶?????????
	int win = -1;
	if( nl < 5 ){
		if( il < 5 )
			win = max(win, dfs( il + nl, ir, nl, nr, turn + 1 ));
		if( ir < 5 )
			win = max(win, dfs( il, ir + nl, nl, nr, turn + 1 ));
	}
	if( nr < 5 ){
		if( il < 5 )
			win = max(win, dfs( il + nr, ir, nl, nr, turn + 1 ));
		if( ir < 5 )
			win = max(win, dfs( il, ir + nr, nl, nr, turn + 1 ));
	}
	return win;
}

int main() {
	int il, ir, nl, nr;
	cin >> il >> ir >> nl >> nr;
	int res = dfs(il, ir, nl, nr, 0);
	if( res == -1 )
		cout << "ISONO" << endl;
	else
		cout << "NAKAJIMA" << endl;
	return 0;
}