#include <bits/stdc++.h>
using namespace std;
int main() {
  int n, m;
  char bin;
  cin >> n >> m;
  char s[n + 1];
  int ss[n + 1];
  int ubil[n + 1];
  int neubil[n + 1];
  int ability[n + 1];
  int ub = 0;
  for (int i = 1; i <= n; ++i) {
    ubil[i] = 0;
    neubil[i] = 0;
  }
  for (int i = 1; i <= n; ++i) cin >> s[i] >> ss[i];
  for (int i = 1; i <= n; ++i)
    if (s[i] == '+')
      ubil[ss[i]]++;
    else
      neubil[ss[i]]++;
  int sum = 0;
  for (int i = 1; i <= n; ++i) sum += neubil[i];
  for (int i = 1; i <= n; ++i) {
    if (ubil[i] + sum - neubil[i] == m) {
      ability[i] = 1;
      ub++;
    }
  }
  for (int i = 1; i <= n; ++i) {
    if (s[i] == '+') {
      if (ability[ss[i]] != 1)
        cout << "Lie" << endl;
      else if (ability[ss[i]] == 1 && ub > 1)
        cout << "Not defined" << endl;
      else
        cout << "Truth" << endl;
    } else {
      if (ability[ss[i]] == 1 && ub > 1)
        cout << "Not defined" << endl;
      else if (ability[ss[i]] != 1)
        cout << "Truth" << endl;
      else
        cout << "Lie" << endl;
    }
  }
  return 0;
}
