import java.util.*;
import java.io.*;

public class Main{

    BufferedReader in;
    StringTokenizer str = null;
    PrintWriter out;

    private String next() throws Exception{
    	while (str == null || !str.hasMoreElements())
    	    str = new StringTokenizer(in.readLine());
    	return str.nextToken();
    }
    
    private int nextInt() throws Exception{
	   return Integer.parseInt(next());
    }
    int n, m;
    int []plus, minus;
    int sp, sm;
    boolean []killer;

    int []to;
    char []op;

    public void run() throws Exception{
    	in = new BufferedReader(new InputStreamReader(System.in));
    	out = new PrintWriter(System.out);
        n = nextInt();
        m = nextInt();
        plus = new int[n];
        minus = new int[n];

        op = new char[n];
        to = new int[n];

        for(int i = 0; i < n; ++i) {
            String s = next();
            to[i] = Integer.parseInt(s.substring(1, s.length()))-1;
            op[i] = s.charAt(0);
            if (op[i] == '+') {
                ++plus[to[i]];
            }else {
                ++minus[to[i]];
            }
        }
        sm = 0;
        for(int i = 0; i < n; ++i) {
            sm+=minus[i];
        }

        killer = new boolean[n];
        int klrs = 0;
        for(int i = 0; i < n; ++i) {
            int x = sm - minus[i] + plus[i];
            if (x == m) {
                killer[i] = true;
                ++klrs;
            }
        }

        for(int i = 0; i < n; ++i) {
            int v = to[i];
            if (op[i] == '+') {
                if (killer[v] && klrs == 1) {
                    out.println("Truth");
                }else if (killer[v]) {
                    out.println("Not defined");
                }else {
                    out.println("Lie");
                }
            }else {
                if (!killer[v]) {
                    out.println("Truth");
                }else if (killer[v] && klrs == 1){
                    out.println("Lie");
                }else {
                    out.println("Not defined");
                }
            }
        }

        out.close();
    }

    public static void main(String args[]) throws Exception{
	   new Main().run();
    }
}