#include <bits/stdc++.h>
using namespace std;
bool is[110000];
int cnt1[110000], cnt2[110000], ren[110000], shi[110000];
char s[20];
int main() {
  int n, m, i, j, ss, zong = 0, k = 0;
  scanf("%d%d", &n, &m);
  for (i = 0; i < n; i++) {
    scanf("%s", s);
    ss = 0;
    int len = strlen(s);
    for (j = 1; j < len; j++) ss = ss * 10 + s[j] - '0';
    if (s[0] == '+')
      cnt1[ss]++, shi[i + 1] = 1, zong++;
    else
      cnt2[ss]++, shi[i + 1] = 0;
    ren[i + 1] = ss;
  }
  for (i = 1; i <= n; i++)
    if (n - cnt2[i] - (zong - cnt1[i]) == m) {
      k++;
      is[i] = 1;
    }
  for (i = 1; i <= n; i++) {
    if (shi[i]) {
      if (!is[ren[i]])
        printf("Lie\n");
      else if (k > 1)
        printf("Not defined\n");
      else
        printf("Truth\n");
    } else {
      if (is[ren[i]] && k == 1)
        printf("Lie\n");
      else if (is[ren[i]])
        printf("Not defined\n");
      else
        printf("Truth\n");
    }
  }
}
