import java.util.Arrays;
import java.util.Scanner;

public class D {

    public static void main(String[] args) {
        Scanner in = new Scanner(System.in);
        int n = in.nextInt();
        int m = in.nextInt();
        int[] com = new int[n + 1];
        int[] dcom = new int[n + 1];
        int[] a = new int[n + 1];
        int cur;
        int neg = 0;
        String s;
        for (int i = 0; i < n; i++) {
            s = in.next();
            cur = Integer.parseInt(s.substring(1));
            if(s.charAt(0)!='+')
                cur*=-1;
            a[i] = cur;
            if (cur > 0) {
                cur--;
                com[cur]++;
            } else {
                cur *= -1;
                cur--;
                dcom[cur]++;
                neg++;
            }
        }
        int[] ok = new int[n + 1];
        int r = 0;
        Arrays.fill(ok, -1);
        for (int i = 0; i < ok.length; i++)
            if (neg - dcom[i] + com[i] == m)
                ok[r++] = i;
        Arrays.sort(ok);

        for (int i = 0; i < n; i++) {

            if (a[i] > 0) {
                cur = a[i] - 1;
                boolean con = Arrays.binarySearch(ok, cur) >= 0;
                if(!con)
                    System.out.println("Lie");
                else if(con&&r==1)
                    System.out.println("Truth");
                else
                    System.out.println("Not defined");
            } else {
                cur = -1 * a[i] - 1;
                boolean con = Arrays.binarySearch(ok, cur)>=0;
                if(!con)
                    System.out.println("Truth");
                else if(con && r == 1)
                    System.out.println("Lie");
                else
                    System.out.println("Not defined");
            }
        }
    }
}