#include <bits/stdc++.h>
using namespace std;
int main() {
  int n = 0, sus = 0, sum = 0, last = 1;
  cin >> n >> sus;
  string s[100001];
  bool ok[100001] = {0}, ans[100001] = {0};
  int i = 0, j = 0;
  for (i = 1; i <= n; i++) cin >> s[i];
  for (i = 1; i <= n; i++) {
    sum = 0;
    for (j = 1; j <= n; j++) {
      if (s[j][1] == (char)i + '0') {
        if (s[j][0] == '+') {
          ok[j] = 1;
          sum++;
        } else
          ok[j] = 0;
      } else {
        if (s[j][0] == '-') {
          ok[j] = 1;
          sum++;
        } else
          ok[j] = 0;
      }
    }
    if (sum == sus) {
      for (j = 1; j <= n; j++)
        if (ok[i] != ok[last]) ans[j] = 1;
      last = i;
    }
  }
  for (i = 1; i <= n; i++) {
    if (ans[i] == 1)
      cout << "Not defined" << endl;
    else {
      if (ok[i] == 1)
        cout << "Truth" << endl;
      else
        cout << "Lie" << endl;
    }
  }
  return 0;
}
