#include <bits/stdc++.h>
using namespace std;
bool mask[101000];
int total_plus, total_minus;
int plus[101000], minus[101000];
char chs[101000], num[101000];
char ss[10000];
int main() {
  int n, m;
  scanf("%d%d", &n, &m);
  gets(ss);
  memset(plus, 0, sizeof(plus));
  memset(minus, 0, sizeof(minus));
  total_plus = total_minus = 0;
  for (int i = 0; i < n; i++) {
    char ch;
    int x;
    gets(ss);
    x = 0;
    for (int j = 0; ss[j]; j++) {
      if (ss[j] == '+' || ss[j] == '-') {
        ch = ss[j];
      } else {
        if (ss[j] >= '0' && ss[j] <= '9') x = x * 10 + ss[j] - '0';
      }
    }
    x--;
    chs[i] = ch;
    num[i] = x;
    if (ch == '+') {
      total_plus++;
      plus[x]++;
    } else {
      total_minus++;
      minus[x]++;
    }
  }
  memset(mask, false, sizeof(mask));
  int cc = 0;
  for (int i = 0; i < n; i++) {
    if (plus[i] + total_minus - minus[i] == m) {
      mask[i] = true;
      cc++;
    }
  }
  if (cc == 0) {
    for (int i = 0; i < n; i++) {
      if (chs[i] == '+')
        printf("Lie\n");
      else
        printf("Truth\n");
    }
  } else if (cc == 1) {
    for (int i = 0; i < n; i++) {
      if (chs[i] == '+') {
        if (mask[num[i]]) {
          printf("Truth\n");
        } else {
          printf("Lie\n");
        }
      } else {
        if (mask[num[i]]) {
          printf("Lie\n");
        } else {
          printf("Truth\n");
        }
      }
    }
  } else {
    for (int i = 0; i < n; i++) {
      if (chs[i] == '+') {
        if (mask[num[i]]) {
          printf("Not defined\n");
        } else {
          printf("Lie\n");
        }
      } else {
        if (mask[num[i]]) {
          printf("Not defined\n");
        } else {
          printf("Truth\n");
        }
      }
    }
  }
  return 0;
}
