#include <bits/stdc++.h>
using namespace std;
int a[100005], frm[100010 * 2], frp[100010 * 2], pluss[100010], minuss[100010];
char c[100005];
int n, k;
int main() {
  int i, j, ok, nrp = 0, nrm = 0, nrplus = 0, nrminus = 0;
  cin.sync_with_stdio(0);
  cin >> n >> k;
  if (!k) {
    for (i = 1; i <= n; ++i) cout << "Lie\n";
    return 0;
  }
  if (k == n) {
    for (i = 1; i <= n; ++i) cout << "Truth\n";
    return 0;
  }
  for (i = 1; i <= n; ++i) {
    cin >> c[i] >> a[i];
    if (c[i] == '+') {
      ++nrp;
      ++frp[a[i]];
      pluss[a[i]] = 1;
    } else {
      ++nrm;
      ++frm[a[i]];
      minuss[a[i]] = 1;
    }
  }
  for (i = 1; i <= n; ++i)
    if (pluss[i])
      ++nrplus;
    else
      ++nrminus;
  for (i = 1, ok = 0; i <= n; ++i)
    if (c[i] == '+') {
      if (frm[a[i]] + nrp - frp[a[i]] != n - k) continue;
      if (nrplus - pluss[a[i]] == n - 1) continue;
      if (frp[a[i]] + nrm - frm[a[i]] != k) continue;
      ok = a[i];
      break;
    }
  for (i = 1; i <= n; ++i) {
    if (c[i] == '+' && nrplus - pluss[a[i]] == n - 1) {
      cout << "Not defined\n";
      continue;
    }
    if (ok) {
      if (c[i] == '-' && a[i] != ok)
        cout << "Truth\n";
      else if (c[i] == '+' && a[i] == ok)
        cout << "Truth\n";
      else
        cout << "Lie\n";
    } else {
      if (c[i] == '+')
        cout << "Lie\n";
      else if (frp[a[i]])
        cout << "Truth\n";
      else
        cout << "Not defined\n";
    }
  }
  return 0;
}
