#include <bits/stdc++.h>
using namespace std;
string ans[2];
int n, m, w, k;
char c[100005];
int a[int(1e5 + 5)], b[int(1e5 + 5)], g[int(1e5 + 5)], x[int(1e5 + 5)];
int main() {
  ans[0] = "Truth";
  ans[1] = "Lie";
  cin >> n >> m;
  for (int i = 1; i <= n; i++) {
    cin >> c[i] >> x[i];
    if (c[i] == '+')
      a[x[i]]++;
    else
      b[x[i]]++, w++;
  }
  for (int i = 1; i <= n; i++) {
    if (a[i] + w - b[i] == m) k++, g[i] = 1;
  }
  if (k == 1)
    for (int i = 1; i <= n; i++)
      cout << ans[((c[i] == '+') + (g[x[i]])) % 2] << endl;
  if (k > 1)
    for (int i = 1; i <= n; i++)
      if (g[x[i]])
        cout << "Not defined" << endl;
      else
        cout << ans[(c[i] == '+')] << endl;
}
