n, m = (int(value) for value in raw_input().split(" "))
a = [raw_input() for i in range(n)]

b = [[] for i in range(n)]
for i in range(n):
    b[int(a[i][1]) - 1].append(a[i][0] == "+")

count_true = 0
count_false = 0
for i in range(n):
    if len(b[i]) == 0:
        continue
    value = b[i][0]
    for j in range(1,len(b[i])):
        value = value and b[i][j]
    b[i] = value
    if value:
        count_true+=1
    else:
        count_false+=1

for item in b:
    if item and count_true <= m:
        print 'Truth'
    elif not item and count_false <= n - m:
        print 'Lie'
    else:
        print 'Not defined'
