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

/**
 * AOJ Sendame</br>
 *
 * @author ?????????????????§???
 */
public class Main{

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

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

		// ???????????\??????????????¬??????????????????????????????????´???????
		for (int cnt = 0; cnt < game_set; cnt++)
			isono.getGesture().add(Pose.valueOf(br.readLine()));
		for (int cnt = 0; cnt < game_set; cnt++)
			nakajima.getGesture().add(Pose.valueOf(br.readLine()));

		// ????????????????????????????????????
		for (int turn = 0; turn < game_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) == Pose.kougekida && p2.getForce() == 0) {
					// p1????????????0??§???????????¢??§??????
					if (!(p1.getGesture().get(turn) == Pose.kougekida)) {
						System.out.println(p1.getPlayerName());
						return;
					}
				}

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

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

/**
 * ?????¬??????????????¶???
 *
 * @author ?????????????????§???
 */
class Player {

	private int force = 0;
	private String PlayerName;
	private List<Pose> gesture = new ArrayList<Pose>();

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

	public void setGesture(List<Pose> 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: 24468