#include <bits/stdc++.h>
using namespace std;
int pls[100005], mns[100005], ans[100005];
int st[100005][2];
bool flag[100005];
int main() {
  int n, m;
  while (scanf("%d%d", &n, &m) > 0) {
    memset(pls, 0, sizeof(pls));
    memset(mns, 0, sizeof(mns));
    int totm = 0;
    for (int i = 1; i <= n; i++) {
      char s[10];
      scanf("%s", s);
      char p;
      int x;
      sscanf(s, "%c%d", &p, &x);
      if (p == '+') {
        pls[x]++;
        st[i][0] = 1;
        st[i][1] = x;
      } else {
        mns[x]++;
        totm++;
        st[i][0] = 0;
        st[i][1] = x;
      }
    }
    memset(flag, false, sizeof(flag));
    int res = 0, last = -1;
    for (int i = 1; i <= n; i++) {
      if (pls[i] + totm - mns[i] == m) {
        flag[i] = true;
        res++;
        last = i;
      }
    }
    for (int i = 1; i <= n; i++) {
      if (st[i][0] == 1) {
        int y = st[i][1];
        if (flag[y]) {
          if (res == 1)
            puts("Truth");
          else
            puts("Not defined");
        } else
          puts("Lie");
      } else {
        int y = st[i][1];
        if (!flag[y])
          puts("Truth");
        else {
          if (res == 1)
            puts("Lie");
          else
            puts("Not defined");
        }
      }
    }
  }
}
