from sys import stdin
           #0:person, 1:accusation
def result(accusations, n, m):
	people = []
	for x in xrange(n):
		people.append([0,0])
	truthvotes = 0
	falsevotes = 0
	for acc in accusations:
		people[acc[0]-1][acc[1]] += 1
		if acc[1]:
			truthvotes += 1
	definiteLies = 0
	liesRemaining = m - definiteLies
	results = [False]*n
	numPossible = 0
	for person in xrange(n):
		lies = truthvotes - people[person][1] + people[person][0]
		if lies == m:
			results[person] = True
			numPossible += 1

	for acc in accusations:
		person = acc[0]
		accusation = acc[1]
		ifTrue = ["Lie", "Truth"][accusation]
		ifFalse = ["Truth", "Lie"][accusation]
		if results[person-1]:
			if(numPossible > 1):
				print "Not defined"
			else:
				print ifTrue
		else:
			print ifFalse

[n, m] = [int(x) for x in stdin.readline().split(" ")]
accusations = []
for x in xrange(n):
	string = stdin.readline()
	accusation = (1 if string[0] == "+" else 0)
	person = int(string[1:])
	accusations.append((person,accusation))

result(accusations, n, n-m)
		

