

import java.awt.Point;
import java.io.*;
import java.math.BigInteger;
import java.util.*;

import static java.lang.Math.*;

public class B implements Runnable{
    
    final boolean ONLINE_JUDGE = System.getProperty("ONLINE_JUDGE") != null;
    
    BufferedReader in;
    PrintWriter out;
    StringTokenizer tok = new StringTokenizer("");
    
    void init() throws FileNotFoundException{
        if (ONLINE_JUDGE){
            in = new BufferedReader(new InputStreamReader(System.in));
            out = new PrintWriter(System.out);
        }else{
            in = new BufferedReader(new FileReader("input.txt"));
            out = new PrintWriter("output.txt");
        }
    }
    
    String readString() throws IOException{
        while(!tok.hasMoreTokens()){
            try{
                tok = new StringTokenizer(in.readLine());
            }catch (Exception e){
                return null;
            }
        }
        return tok.nextToken();
    }
    
    int readInt() throws IOException{
        return Integer.parseInt(readString());
    }
    
    long readLong() throws IOException{
        return Long.parseLong(readString());
    }
    
    double readDouble() throws IOException{
        return Double.parseDouble(readString());
    }
    
    public static void main(String[] args){
        new Thread(null, new B(), "", 256 * (1L << 20)).start();
    }
    
    long timeBegin, timeEnd;

    void time(){
        timeEnd = System.currentTimeMillis();
        System.err.println("Time = " + (timeEnd - timeBegin));
    }
    
    long memoryTotal, memoryFree;
    

    void memory(){
        memoryFree = Runtime.getRuntime().freeMemory();
        System.err.println("Memory = " + ((memoryTotal - memoryFree) >> 10) + " KB");
    }
    
    void debug(Object... objects){
        if (DEBUG){
            for (Object o: objects){
                System.err.println(o.toString());
            }
        }
    }
    
    public void run(){
        try{
            timeBegin = System.currentTimeMillis();
            memoryTotal = Runtime.getRuntime().freeMemory();
            init();
            solve();
            out.close();
            time();
            memory();
        }catch (Exception e){
            e.printStackTrace(System.err);
            System.exit(-1);
        }
    }
    
    boolean DEBUG = false;
    
    void solve() throws IOException{
        int n = readInt();
        int m = readInt();
        
        int[] next = new int[n];
        
        String s;
        
        for (int i = 0; i < n; i++){
            s = readString();
            next[i] = Integer.parseInt(s.substring(1)) * (s.charAt(0) == '+'? 1: -1);
            if (next[i] > 0) next[i]--;
        }
        
        int[] plus = new int[n];
        int[] minus = new int[n];
        
        int count = 0;
        
        for (int i = 0; i < n; i++){
            int to = next[i];
            if (to >= 0){
                plus[to]++;
            }else{
                minus[-to-1]++;
                count++;
            }
        }
        
        HashSet<Integer> set = new HashSet<Integer>();
        
        for (int i = 0; i < n; i++){
            if (plus[i] + (count - minus[i]) == m){
                set.add(i);
            }
        }
        
        for (int i = 0; i < n; i++){
            int to = next[i];
            
            if (to >= 0){
                if (set.contains(to)){
                    if (set.size() == 1){
                        out.println("Truth");
                    }else{
                        out.println("Not defined");
                    }
                }else{
                    out.println("Lie");
                }
            }else{
                to = -to - 1;
                
                if (set.contains(to)){
                    if (set.size() == 1){
                        out.println("Lie");
                    }else{
                        out.println("Not defined");
                    }
                }else{
                    out.println("Truth");
                }
            }
        }
    }
}

