#include <bits/stdc++.h>
using namespace std;
int n, k, s[100002][2];
int susc = 0, defc = 0, sus[100002], def[100002];
int main() {
  scanf("%d %d", &n, &k);
  memset(sus, 0, sizeof(sus));
  memset(def, 0, sizeof(def));
  for (int i = 1; i <= n; i++) {
    char c;
    scanf("\n%c%d", &c, &s[i][0]);
    if (c == '+')
      s[i][1] = 1, sus[s[i][0]]++, susc++;
    else
      s[i][1] = -1, def[s[i][0]]++, defc++;
  }
  bool kk[100002];
  int p = 0;
  memset(kk, 0, sizeof(kk));
  for (int i = 1; i <= n; i++) {
    if ((sus[i] + defc - def[i]) == k) {
      kk[i] = true;
      p++;
    }
  }
  if (p == 1) {
    for (int i = 1; i <= n; i++) {
      if (s[i][1] == 1)
        printf("%s\n", kk[s[i][0]] ? "Truth" : "Lie");
      else
        printf("%s\n", !kk[s[i][0]] ? "Truth" : "Lie");
    }
  } else {
    for (int i = 1; i <= n; i++) {
      if (s[i][1] == 1)
        printf("%s\n", kk[s[i][0]] ? "Not defined" : "Lie");
      else
        printf("%s\n", !kk[s[i][0]] ? "Truth" : "Not defined");
    }
  }
  return 0;
}
