#include <bits/stdc++.h>
using namespace std;
vector<int> kill[111111], good[111111];
int n, m, sp, sm;
int mask[111111];
char tmp[11111];
int main() {
  scanf("%d%d", &n, &m);
  for (int i = 0; i < n; ++i) {
    scanf("%s", tmp);
    char sym;
    int who;
    sscanf(tmp, "%c%d", &sym, &who);
    --who;
    if (sym == '+') {
      kill[who].push_back(i);
      ++sp;
    } else {
      good[who].push_back(i);
      ++sm;
    }
  }
  int total = 0;
  for (int i = 0; i < n; ++i) {
    if ((int)((kill[i]).size()) + sm - (int)((good[i]).size()) == m) {
      ++total;
    }
  }
  if (total > 1) {
    for (int i = 0; i < n; ++i) {
      for (int j = 0; j < (int)((good[i]).size()); ++j) {
        mask[good[i][j]] |= 1;
      }
      for (int j = 0; j < (int)((kill[i]).size()); ++j) {
        mask[kill[i][j]] |= 2;
      }
    }
  }
  for (int i = 0; i < n; ++i) {
    if ((int)((kill[i]).size()) + sm - (int)((good[i]).size()) == m) {
      for (int j = 0; j < (int)((good[i]).size()); ++j) {
        mask[good[i][j]] |= 2;
      }
      for (int j = 0; j < (int)((kill[i]).size()); ++j) {
        mask[kill[i][j]] |= 1;
      }
    }
  }
  for (int i = 0; i < n; ++i) {
    if (mask[i] == 1)
      printf("Truth\n");
    else if (mask[i] == 2)
      printf("Lie\n");
    else
      printf("Not defined\n");
  }
  return 0;
}
