#include <bits/stdc++.h>
using namespace std;
int main() {
  int n, m, tp = 0, tn = 0, x;
  cin >> n >> m;
  vector<int> a(n + 1, 0);
  vector<int> p(n + 1, 0);
  vector<int> neg(n + 1, 0);
  vector<bool> iscriminal(n + 1, false);
  for (int i = 1; i <= n; i++) {
    string s;
    cin >> s;
    int pt = 1;
    for (int j = s.size() - 1; j >= 1; j--) {
      a[i] += pt * (s[j] - '0');
      pt *= 10;
    }
    if (s[0] == '+') {
      p[a[i]]++;
      tp++;
    } else {
      neg[a[i]]++;
      tn++;
      a[i] = -a[i];
    }
  }
  int tc = 0;
  for (int i = 1; i <= n; i++) {
    if (p[i] + tn - neg[i] == m) {
      iscriminal[i] = true;
      tc++;
    }
  }
  for (int i = 1; i <= n; i++) {
    if (a[i] > 0) {
      if (iscriminal[a[i]]) {
        if (tc > 1)
          cout << "Not defined"
               << "\n";
        else
          cout << "Truth"
               << "\n";
      } else
        cout << "Lie"
             << "\n";
    } else {
      if (iscriminal[-a[i]]) {
        if (tc > 1)
          cout << "Not defined"
               << "\n";
        else
          cout << "Lie"
               << "\n";
      } else
        cout << "Truth"
             << "\n";
    }
  }
}
