#include <bits/stdc++.h>
using namespace std;
const int maxn = 105000;
int n, m;
char c[20], cd[maxn];
int a[maxn], is[maxn], nis[maxn];
int crime[maxn];
int main() {
  int i, j, k, ais, anis, tmp, crimenum;
  scanf("%d%d", &n, &m);
  ais = anis = 0;
  for (i = 0; i < n; i++) {
    scanf("%s", c);
    sscanf(c, "%c%d", &cd[i], &a[i]);
    if (cd[i] == '+')
      ais++, is[a[i]]++;
    else
      anis++, nis[a[i]]++;
  }
  crimenum = 0;
  for (i = 1; i <= n; i++) {
    tmp = is[i] + anis - nis[i];
    if (tmp == m) {
      crime[i] = 1;
      crimenum++;
    }
  }
  for (i = 0; i < n; i++) {
    if (cd[i] == '+') {
      if (crime[a[i]]) {
        if (crimenum > 1)
          printf("Not defined\n");
        else
          printf("Truth\n");
      } else
        printf("Lie\n");
    } else {
      if (!crime[a[i]])
        printf("Truth\n");
      else if (crimenum == 1)
        printf("Lie\n");
      else
        printf("Not defined\n");
    }
  }
  return 0;
}
