#include <bits/stdc++.h>
using namespace std;
int n, m, a[100010], c[2][100010], t[2][100010], f[2][100010], M;
char C[100010];
vector<int> v[2][100010];
set<int> S;
int main() {
  cin >> n >> m;
  for (int i = 0; i < n; i++) {
    cin >> C[i] >> a[i];
    a[i]--;
    if (C[i] == '+')
      c[0][a[i]]++, v[0][a[i]].push_back(i);
    else
      c[1][a[i]]++, v[1][a[i]].push_back(i), M++;
  }
  for (int i = 0; i < n; i++) {
    if (c[0][i] + M - c[1][i] == m) S.insert(i);
  }
  for (int i = 0; i < n; i++) {
    if (C[i] == '+') {
      if (S.count(a[i]))
        S.size() == 1 ? printf("Truth\n") : printf("Not defined\n");
      else
        printf("Lie\n");
    } else {
      if (S.count(a[i]))
        S.size() == 1 ? printf("Lie\n") : printf("Not defined\n");
      else
        printf("Truth\n");
    }
  }
}
