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

    public class Test {

            public static void main(String args[]){
                    Scanner input = new Scanner(System.in);
                    int n = input.nextInt();
                    int m = input.nextInt();
                    String s[] = new String[n];
                    for(int i = 0 ; i < n ; i++){
                    	s[i] = input.next();
                    }
                    lucky(n,m,s);
            }
           
            public static void lucky(int n,int m,String[] s){
            	ArrayList<Integer> yes = new ArrayList<Integer>();
            	ArrayList<Integer> no = new ArrayList<Integer>();
            	for(int i = 0 ; i < s.length ; i++){
            		if(s[i].contains("+")){
            			int st = Integer.parseInt(s[i].substring(1,s[i].length()));
            			if(!yes.contains(st))yes.add(st);
            		}else{
            			int st = Integer.parseInt(s[i].substring(1,s[i].length()));
            			if(!no.contains(st))no.add(st);
            		}
            	}
            	if(no.size() > m){
            		for(int i = 0 ; i < s.length ; i++){
            			if(s[i].contains("+")){
            				System.out.println("Lie");
            			}else{
            				System.out.println("Not defined");            				
            			}
            		}
            	}else if(no.size() == m){
            		for(int i = 0 ; i < s.length ; i++){
            			if(s[i].contains("+")){
            				System.out.println("Lie");
            			}else{
            				System.out.println("Truth");            				
            			}
            		}
            	}else{
            		if(yes.size() >= 2){
                		for(int i = 0 ; i < s.length ; i++){
                			if(s[i].contains("+")){
                				System.out.println("Not defined");
                			}else{
                				System.out.println("Truth");            				
                			}
                		}            			
            		}else{
                		for(int i = 0 ; i < s.length ; i++){
                			if(s[i].contains("+")){
                				System.out.println("Truth");
                			}else{
                				System.out.println("Not defined");            				
                			}          				
                		}     
            		}
            	}
            }

    }