n,m=list(map(int,input().split()))
a=[[0,0] for i in range(n)]
b=[]
e=0
f=0
for i in range(n):
    c=input()
    d=int(c[1:])
    if c[0]=='+':
        a[d-1][0]+=1
        e+=1
    else:
        a[d-1][1]+=1
        f+=1
    b.append([c[0],d])
g=[a[i][0]+f-a[i][1] for i in range(n)]
h=g.count(m)
for i in range(n):
    d=b[i][1]
    if b[i][0]=='+':
        if g[d-1]==m:
            if h>1:
                print('Not defined')
            else:
                print('Truth')
        else:
            print('Lie')
    else:
        if h>1 or h==1 and g[d-1]!=m:
            if g[d-1]==m:
                print('Not defined')
            else:
                print('Truth')
        else:
            print('Lie')