#include <bits/stdc++.h>
using namespace std;
static const double EPS = 1e-5;
int main() {
  int n, m;
  cin >> n >> m;
  int vote[2][100002];
  int votenum[100002];
  bool guilty[100002];
  memset(vote, 0, sizeof(vote));
  memset(votenum, 0, sizeof(votenum));
  memset(guilty, false, sizeof(guilty));
  int crimnum = 0;
  for (int i = 0; i < n; i++) {
    char sign;
    int num;
    cin >> sign >> num;
    if (sign == '+') {
      crimnum++;
      vote[0][num]++;
      votenum[i] = +num;
    } else {
      vote[1][num]++;
      votenum[i] = -num;
    }
  }
  int guilnum = 0;
  for (int i = 1; i <= n; i++) {
    if (crimnum - vote[0][i] + vote[1][i] == n - m) {
      guilty[i] = true;
      guilnum++;
    }
  }
  for (int i = 0; i < n; i++) {
    if (votenum[i] > 0) {
      if (guilnum == 1 && guilty[votenum[i]] == true) {
        cout << "Truth" << endl;
      } else if (guilty[votenum[i]] == false) {
        cout << "Lie" << endl;
      } else {
        cout << "Not defined" << endl;
      }
    } else {
      if (guilty[-votenum[i]] == false) {
        cout << "Truth" << endl;
      } else {
        if (guilnum > 1) {
          cout << "Not defined" << endl;
        } else {
          cout << "Lie" << endl;
        }
      }
    }
  }
  return 0;
}
