#include <bits/stdc++.h>
using namespace std;
mt19937 rnd(time(0));
const long long inf = 0x3f3f3f3f3f3f3f3fLL;
const long long N = 3e5 + 10;
const long long MOD = 1e9 + 7;
long long get(string s) {
  long long res = 0;
  for (long long i = 1; i < (long long)s.size(); i++) {
    res *= 10;
    res += (s[i] - '0');
  }
  return res;
}
int32_t main() {
  ios::sync_with_stdio(false);
  cin.tie(0);
  long long n, m;
  cin >> n >> m;
  vector<pair<long long, long long>> x;
  string s;
  long long tot = 0;
  vector<pair<long long, long long>> a(n + 1);
  for (long long i = 0; i < n; i++) {
    cin >> s;
    if (s[0] == '+') {
      long long c = get(s);
      a[c].first++;
      x.emplace_back(1, c);
    } else {
      long long c = get(s);
      a[c].second++;
      tot++;
      x.emplace_back(-1, c);
    }
  }
  set<long long> st;
  for (long long i = 1; i <= n; i++) {
    long long C = a[i].first + tot - a[i].second;
    if (C == m) st.insert(i);
  }
  for (long long i = 0; i < n; i++) {
    if (x[i].first == 1) {
      if (st.count(x[i].second)) {
        if ((long long)st.size() > 1)
          cout << "Not defined" << '\n';
        else
          cout << "Truth" << '\n';
      } else
        cout << "Lie" << '\n';
    } else {
      if (st.count(x[i].second)) {
        if ((long long)st.size() > 1)
          cout << "Not defined" << '\n';
        else
          cout << "Lie" << '\n';
      } else
        cout << "Truth" << '\n';
    }
  }
  return 0;
}
