#include <bits/stdc++.h>
using namespace std;
int n, m;
char c[100001];
int d[100001];
int guilty[100001], innocent[100001];
int innocent_total = 0;
int t[100001];
bool criminal[100001];
int main() {
  cin >> n >> m;
  memset(guilty, 0, sizeof(guilty));
  memset(innocent, 0, sizeof(innocent));
  for (int i = 0; i < n; i++) {
    string temp;
    cin >> temp;
    c[i] = temp[0];
    d[i] = (int)temp[1] - '0' - 1;
    if (c[i] == '+') {
      guilty[d[i]]++;
    } else {
      innocent[d[i]]++;
      innocent_total++;
    }
  }
  int total_criminal = 0;
  memset(criminal, 0, sizeof(criminal));
  for (int i = 0; i < n; i++) {
    if (innocent_total - innocent[i] + guilty[i] == m) {
      criminal[i] = true;
      total_criminal++;
    }
  }
  for (int i = 0; i < n; i++) {
    if (c[i] == '+') {
      if (criminal[d[i]])
        t[i] = (total_criminal == 1 ? 0 : 2);
      else
        t[i] = 1;
    } else {
      if (criminal[d[i]])
        t[i] = (total_criminal == 1 ? 1 : 2);
      else
        t[i] = 0;
    }
  }
  for (int i = 0; i < n; i++) {
    if (t[i] == 0)
      cout << "Truth" << endl;
    else if (t[i] == 1)
      cout << "Lie" << endl;
    else if (t[i] == 2)
      cout << "Not defined" << endl;
  }
  return 0;
}
