#include <bits/stdc++.h>
using namespace std;
const double pi = 3.14159265;
const long long mod = 998244353;
const long long N = 1e3 + 5;
const long long st = 1e2;
const int P0 = 437;
const int P1 = 331;
int main() {
  cin.sync_with_stdio();
  cin.tie(0);
  cout.tie(0);
  int n, m;
  cin >> n >> m;
  vector<int> c(n), a(n), Pl(n + 1), Mi(n + 1);
  vector<char> q(n);
  int pl = 0, mi = 0;
  for (int i = 0; i < n; i++) {
    cin >> q[i] >> a[i];
    a[i]--;
    if (q[i] == '+') {
      pl++;
      Pl[a[i]]++;
    } else {
      mi++;
      Mi[a[i]]++;
    }
  }
  int cnt = 0;
  for (int i = 0; i < n; i++) {
    if (Pl[i] + (mi - Mi[i]) == m) {
      c[i] = 1;
      cnt++;
    }
  }
  for (int i = 0; i < n; i++) {
    if (q[i] == '+') {
      if (c[a[i]] == 0)
        cout << "Lie\n";
      else if (cnt == 1)
        cout << "Truth\n";
      else
        cout << "Not defined\n";
    } else {
      if (c[a[i]] == 0)
        cout << "Truth\n";
      else if (cnt == 1)
        cout << "Lie\n";
      else
        cout << "Not defined\n";
    }
  }
}
