#include <bits/stdc++.h>
using namespace std;
const long long mod = 1000000007;
const long long inf = 1e16;
const long long ninf = LLONG_MIN;
const double eps = 1e-12;
const long long N = 1000005;
const long long LOGN = 19;
long long n, m;
long long in[N], out[N], which[N];
bool type[N], possible[N];
int main() {
  ios_base::sync_with_stdio(0);
  cin >> n >> m;
  long long rem = 0, tot = 0;
  for (int i = 1; i <= n; i++) {
    char c;
    long long x;
    cin >> c >> x;
    if (c == '+') {
      in[x]++;
      type[i] = 1;
    } else {
      out[x]++;
      rem++;
    }
    which[i] = x;
  }
  for (int i = 1; i <= n; i++) {
    if (in[i] + rem - out[i] == m) {
      tot++;
      possible[i] = 1;
    }
  }
  for (int i = 1; i <= n; i++) {
    if (possible[which[i]] && tot == 1) {
      if (type[i])
        cout << "Truth\n";
      else
        cout << "Lie\n";
    } else if (!possible[which[i]] && tot == 1) {
      if (type[i])
        cout << "Lie\n";
      else
        cout << "Truth\n";
    } else if (possible[which[i]] && tot != 1) {
      cout << "Not defined\n";
    } else if (!possible[which[i]] && tot != 1) {
      if (type[i])
        cout << "Lie\n";
      else
        cout << "Truth\n";
    }
  }
  return 0;
}
