#include <bits/stdc++.h>
using namespace std;
int yes[100005], no[100005], num[100005];
char c[100005];
int ans[100005] = {3};
int n, m, cntn = 0, r;
int main() {
  cin >> n >> m;
  for (int i = 1; i <= n; i++) {
    cin >> c[i] >> num[i];
    if (c[i] == '+')
      yes[num[i]]++;
    else
      no[num[i]]++, cntn++;
  }
  for (int i = 1; i <= n; i++) {
    if (yes[i] + cntn - no[i] == m) {
      for (int j = 1; j <= n; j++) {
        if (c[j] == '+') {
          if (num[j] == i)
            r = 1;
          else
            r = 0;
        } else {
          if (num[j] == i)
            r = 0;
          else
            r = 1;
        }
        if (ans[j] != 3 && ans[j] != r)
          ans[j] = 2;
        else
          ans[j] = r;
      }
    }
  }
  for (int i = 1; i <= n; i++) {
    if (ans[i] == 0)
      cout << "Lie" << endl;
    else if (ans[i] == 1)
      cout << "Truth" << endl;
    else
      cout << "Not defined" << endl;
  }
}
