#include <bits/stdc++.h>
using namespace std;
int main() {
  int n, m, cnt = 0, re = 0;
  cin >> n >> m;
  char c[n + 1];
  int r[n + 1], arr[n + 1], brr[n + 1], ans[n + 1];
  memset(r, 0, sizeof(r));
  memset(arr, 0, sizeof(arr));
  memset(brr, 0, sizeof(brr));
  memset(ans, 0, sizeof(ans));
  for (int i = 1; i <= n; i++) {
    cin >> c[i];
    cin >> r[i];
    if (c[i] == '+') {
      arr[r[i]]++;
    } else {
      brr[r[i]]++;
      cnt++;
    }
  }
  for (int i = 1; i <= n; i++) {
    if (arr[i] + cnt - brr[i] == m) {
      re++;
      ans[i] = 1;
    }
  }
  for (int i = 1; i <= n; i++) {
    if (c[i] == '+') {
      if (ans[r[i]] && re == 1) {
        cout << "Truth" << endl;
      } else if (!ans[r[i]]) {
        cout << "Lie" << endl;
      } else {
        cout << "Not defined" << endl;
      }
    } else {
      if (!ans[r[i]]) {
        cout << "Truth" << endl;
      } else if (ans[r[i]] && re == 1) {
        cout << "Lie" << endl;
      } else {
        cout << "Not defined" << endl;
      }
    }
  }
}
