import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;
import java.util.ArrayList;
import java.util.List;

public class Main{

	/*
	 * ????????°???????????¨?????????????????????
	 */
	public static void main(String[] args) throws NumberFormatException, IOException {

		BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
		// ??????????????°
		int set = Integer.parseInt(br.readLine());
		// ?????¬?????????????????????????????????
		Player isono = new Player("Isono-kun");
		Player nakajima = new Player("Nakajima-kun");

		// ??????????????????????????????????????????????´?
		for (int cnt = 0; cnt < set; cnt++)
			isono.getGesture().add(Action.valueOf(br.readLine()));
		for (int cnt = 0; cnt < set; cnt++)
			nakajima.getGesture().add(Action.valueOf(br.readLine()));

		test(set, isono, nakajima);
	}// ?????????????????????????????????

	private static void test(int set, Player isono, Player nakajima) {

		// ????????????????????????????????????
		for (int turn = 0; turn < set; turn++) {
			// ???????????\????????????2???????????????
			for (int chance = 0; chance < 2; chance++) {
				Player p1 = chance == 0 ? isono : nakajima;
				Player p2 = chance == 0 ? nakajima : isono;

				// ?????????????????????p1???????????????????????????????????????
				// p2????????????0??§???????????¢
				if (p2.getGesture().get(turn) == Action.kougekida && p2.getForce() == 0) {
					// p1????????????0??§???????????¢??§??????
					if (!(p1.getGesture().get(turn) == Action.kougekida)) {
						System.out.println(p1.getPlayerName());
						return;
					}
				}

				// p1????????????1??\?????§???????????¢
				if (p1.getGesture().get(turn) == Action.kougekida && p1.getForce() > 0) {
					if (p1.getForce() >= 5 || (p2.getGesture().get(turn) != Action.mamoru
							&& p2.getGesture().get(turn) != Action.kougekida)) {
						System.out.println(p1.getPlayerName());
						return;
					}
					// ????????¨??????????????¢???????????¨
					if (p2.getGesture().get(turn) == Action.kougekida) {
						if (p1.getForce() > p2.getForce()) {
							System.out.println(p1.getPlayerName());
							return;
						}
					}
				}
			}
			// ???????????¢?????¨??£?????´??????????????????0?????????
			if (isono.getGesture().get(turn) == Action.kougekida)
				isono.setForce(0);
			if (nakajima.getGesture().get(turn) == Action.kougekida)
				nakajima.setForce(0);
			// ?????????
			if (isono.getGesture().get(turn) == Action.tameru)
				isono.setForce(isono.getForce() + 1);
			if (nakajima.getGesture().get(turn) == Action.tameru)
				nakajima.setForce(nakajima.getForce() + 1);
		}
		System.out.println("Hikiwake-kun");
	}
}// ??????????????????????????????

enum Action {
	kougekida, tameru, mamoru
}// Action?????????????????????

/**
 * ?????¬??????????????¶???
 *
 * @author ?????????????????§???
 */
class Player {
	private int force = 0;
	private String PlayerName;
	private List<Action> gesture = new ArrayList<Action>();

	public List<Action> getGesture() {
		return gesture;
	}

	public void setGesture(List<Action> gesture) {
		this.gesture = gesture;
	}

	public String getPlayerName() {
		return PlayerName;
	}

	public void setPlayerName(String playerName) {
		PlayerName = playerName;
	}

	public int getForce() {
		return force;
	}

	public void setForce(int force) {
		this.force = force;
	}

	Player(String name) {
		this.PlayerName = name;
	}
}// Player?????????????????????

Measured memory_bytes: 24472