#include <bits/stdc++.h>
using namespace std;
int n, m, i, a[100005], b[100005], hon;
char ch[100005];
string s;
bool check1() {
  if (n != m) return 0;
  int mi = 0, pl = 0;
  for (i = 1; i <= n; i++) {
    if (ch[i] == '+') pl++;
    if (ch[i] == '-') mi++;
    if (mi && pl) return 0;
  }
  return 1;
}
bool check2() {
  int mi2 = 0, pl2 = 0;
  for (i = 1; i <= n; i++) {
    if (ch[i] == '+') pl2++;
    if (ch[i] == '-') mi2++;
    if (pl2) return 0;
  }
  return 1;
}
int main() {
  cin >> n >> m;
  for (i = 1; i <= n; i++) {
    cin >> ch[i] >> a[i];
  }
  if (check1()) {
    for (i = 1; i <= n; i++) {
      cout << "Truth\n";
    }
    return 0;
  }
  if (check2()) {
    for (i = 1; i <= n; i++) {
      cout << "Not defined\n";
    }
    return 0;
  }
  for (i = 1; i <= n; i++) {
    if (ch[i] == '+') b[i]++;
    if (ch[i] == '-') b[i] += 2;
    if (b[i] == 1)
      s[i] = 'l';
    else {
      hon++;
      s[i] = 't';
    }
  }
  int sp = 0;
  if (hon > m) {
    for (i = 1; i <= n; i++) {
      if (s[i] == 't') sp++;
      if (sp >= hon - 1 && s[i] == 't') s[i] = 'n';
    }
  }
  for (i = 1; i <= n; i++) {
    if (s[i] == 'l')
      cout << "Lie\n";
    else if (s[i] == 't')
      cout << "Truth\n";
    else
      cout << "Not defined\n";
  }
  return 0;
}
