#include <bits/stdc++.h>
using namespace std;
int no[100005], y[100005], pl, mi;
int n, m;
char st[100005];
int killer[100005], who[100005], tl[100005];
int main() {
  cin >> n >> m;
  for (int i = 0; i < n; i++) {
    char ch;
    int num;
    cin >> ch >> num;
    st[i] = ch;
    who[i] = num;
    if (ch == '-')
      no[num]++, mi++;
    else
      y[num]++, pl++;
  }
  int tk = 0;
  for (int i = 0; i < n; i++)
    if (y[i + 1] + mi - no[i + 1] == m) killer[i + 1] = 1, tk++;
  for (int i = 0; i < n; i++) {
    if (st[i] == '+') {
      if (killer[who[i]]) {
        if (tk == 1)
          cout << "Truth\n";
        else
          cout << "Not defined\n";
      } else
        cout << "Lie\n";
    } else {
      if (!killer[who[i]])
        cout << "Truth\n";
      else {
        if (tk == 1)
          cout << "Lie\n";
        else
          cout << "Not defined\n";
      }
    }
  }
  return 0;
}
