#include <bits/stdc++.h>
using namespace std;
int main() {
  ios_base::sync_with_stdio(0), cin.tie(0), cout.tie(0);
  int n, m;
  cin >> n >> m;
  vector<string> s;
  for (int i = 0; i < n; i++) {
    char c;
    int num;
    cin >> c >> num;
    if (c == '-')
      s.push_back("Not defined");
    else
      s.push_back("Lie");
  }
  if (n == m) {
    for (int i = 0; i < n; i++) {
      cout << "Truth" << '\n';
      ;
    }
  } else {
    for (int i = 0; i < n; i++) {
      cout << s[i] << '\n';
      ;
    }
  }
  return 0;
}
