import java.util.*;
public class B {
	public static void main(String[] args) {
		Scanner s = new Scanner(System.in);
		int n = s.nextInt(), m = s.nextInt();
		int[] did = new int[n+1];
		int[] didnot = new int[n+1];
		int[] said = new int[n];
		int totDid = 0, totDidnot = 0;
		for (int i = 0; i < n; i++) {
			String st = s.next();
			int who = Integer.parseInt(st.substring(1))*(st.charAt(0)=='+' ? 1 : -1);
			if (who > 0) { did[who]++; totDid++; }
			else { didnot[-who]++; totDidnot++; }
			said[i] = who;
		}
		boolean[] couldbe = new boolean[n+1];
		int couldcount = 0;
		for (int i = 1; i <= n; i++) {
			// totDid - did[i] lied
			// didnot[i] lied
			// did[i] told the truth
			// totDidnot - didnot[i] told the truth
			couldbe[i] = (did[i] + totDidnot - didnot[i] == m);
			if (couldbe[i]) couldcount++;
		}
		for (int i = 0; i < n; i++) {
			if (said[i] > 0) {
				if (!couldbe[said[i]]) System.out.println("Lie");
				else if (couldcount == 1) System.out.println("Truth");
				else System.out.println("Not defined");
			} else {
				if (!couldbe[-said[i]]) System.out.println("Truth");
				else if (couldcount == 1) System.out.println("Lie");
				else System.out.println("Not defined");
			}
		}
	}
}
