import java.util.*;
import java.io.*;
import java.awt.Point;
import static java.lang.Math.*;

public class P156B {
    public static void main(String[] args) throws Exception {
        Scanner in = new Scanner(System.in);
        int n = in.nextInt();
        int m = in.nextInt();
        int[] P = new int[n];
        int[] M = new int[n];
        int ans = 0;
        String[] clue = new String[n];
        for(int i=0; i<n; i++) {
            String s = in.next();
            clue[i] = s;
            int val = Integer.parseInt(s.substring(1))-1;
            if(s.charAt(0)=='+')
                P[val]++;
            else {
                M[val]++;
                ans++;
            }
        }

        Set<Integer> G = new HashSet<Integer>();
        for(int i=0; i<n; i++) {
            if(ans + P[i] - M[i] == m)
                G.add(i);
        }

        for(int i=0; i<n; i++) {
            boolean plus = clue[i].charAt(0)=='+';
            int val = Integer.parseInt(clue[i].substring(1))-1;
            if(!G.contains(val)) {
                System.out.println(plus?"Lie":"Truth");
            }
            else if(G.contains(val) && G.size() == 1)
                System.out.println(plus?"Truth":"Lie");
            else System.out.println("Not defined");
        }
    }
}
