#include <bits/stdc++.h>
using namespace std;
int sus[1110111];
int k = 0, x[1110111], n, m;
char c[1110111];
int main() {
  int tru = 0;
  cin >> n >> m;
  for (int i = 1; i <= n; i++) {
    cin >> c[i] >> x[i];
    if (c[i] == '-')
      sus[x[i]]--, tru++;
    else
      sus[x[i]]++;
  }
  for (int i = 1; i <= n; i++) {
    sus[i] -= m;
    sus[i] += tru;
    if (sus[i] == 0) k++;
  }
  for (int i = 1; i <= n; i++) {
    if (sus[x[i]] == 0) {
      if (k == 1)
        cout << "Truth";
      else
        cout << "Not defined";
    } else
      cout << "Lie";
    cout << endl;
  }
  return 0;
}
