#include <bits/stdc++.h>
using namespace std;
int top;
bool jud[100010];
int A[100010], B[100010];
bool op[100010];
int K[100011];
int N, M;
char ch[10];
int main() {
  scanf("%d%d", &N, &M);
  int sa = 0, sb = 0;
  for (int i = 1; i <= N; i++) {
    scanf("%s", ch);
    int s = 0;
    for (int j = 1; ch[j]; j++) {
      s *= 10;
      s += ch[j] - '0';
    }
    K[i] = s;
    if (ch[0] == '+') {
      sa++;
      op[i] = true;
      A[s]++;
    } else {
      sb++;
      op[i] = false;
      B[s]++;
    }
  }
  top = 0;
  for (int i = 1; i <= N; i++) {
    if (sb - B[i] + A[i] == M) {
      jud[i] = true;
      top++;
    }
  }
  for (int i = 1; i <= N; i++) {
    if (jud[K[i]]) {
      if (top > 1) {
        printf("Not defined\n");
      } else {
        if (A[i])
          printf("Truth\n");
        else
          printf("Lie\n");
      }
    } else {
      if (op[i])
        printf("Lie\n");
      else
        printf("Truth\n");
    }
  }
  return 0;
}
