import java.io.BufferedReader;
import java.io.BufferedWriter;
import java.io.IOException;
import java.io.InputStreamReader;
import java.io.OutputStreamWriter;
import java.io.PrintWriter;
import java.io.StreamTokenizer;


public class D {

    static StreamTokenizer st;
    public static void main(String[] args) throws IOException{
        BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
        PrintWriter pw = new PrintWriter(new BufferedWriter(new OutputStreamWriter(System.out)));
        String[]s = br.readLine().trim().split(" ");
        int n = Integer.parseInt(s[0]);
        int m = Integer.parseInt(s[1]);
        int[]pilus = new int[n+1], minus = new int[n+1];
        String ss;
        char[]what = new char[n+1];
        int[] who = new int[n+1];
        int  sum_minus = 0;
        for (int i = 1; i <= n; i++) {
            ss = br.readLine().trim();
            what[i] = ss.charAt(0);
            who[i] = Integer.parseInt(ss.substring(1));
            if (what[i]=='+') {
                pilus[who[i]]++;
            }
            else {
                minus[who[i]]++;
                sum_minus++;
            }
        }
        int ros;
        boolean[]kill = new boolean[n+1];
        int cnt = 0;
        for (int i = 1; i <= n; i++) {
            ros = pilus[i];
            ros += sum_minus-minus[i];
            if (ros==m) {
                kill[i] = true;
                cnt++;
            }
        }
        for (int i = 1; i <= n; i++) {
            if (what[i]=='+') {
                if (!kill[who[i]])
                    pw.println("Lie");
                else {
                    if (cnt > 1)
                        pw.println("Not defined");
                    else
                        pw.println("Truth");
                }
                
            }
            else {
                if (!kill[who[i]])
                    pw.println("Truth");
                else {
                    if (cnt > 1)
                        pw.println("Not defined");
                    else
                        pw.println("Lie");
                }
            }
        }
        pw.close();
    }

}
