#include <bits/stdc++.h>
using namespace std;
const int K = 100005;
int n, m, a[K], b[2][K], rp;
char c[K];
bool bo[K];
int main() {
  ios_base::sync_with_stdio(false);
  cin.tie(0), cout.tie(0);
  cin >> n >> m;
  for (int i = 1; i <= n; ++i) {
    cin >> c[i] >> a[i];
    if (c[i] == '+')
      ++b[0][a[i]];
    else
      ++b[1][a[i]], ++b[1][0];
  }
  for (int i = 1; i <= n; ++i) {
    if (b[1][0] - b[1][i] + b[0][i] == m) {
      bo[i] = 1;
      ++rp;
    }
  }
  for (int i = 1; i <= n; ++i) {
    if (c[i] == '+') {
      if (bo[a[i]]) {
        if (rp == 1)
          cout << "Truth" << endl;
        else
          cout << "Not defined" << endl;
      } else {
        cout << "Lie" << endl;
      }
    } else {
      if (bo[a[i]]) {
        if (rp == 1)
          cout << "Lie" << endl;
        else
          cout << "Not defined" << endl;
      } else {
        cout << "Truth" << endl;
      }
    }
  }
  return 0;
}
