Time Limit Check

No attempts yetTime limit2sMemory limit256 MB

Problem

Yubin got a time limit exceeded verdict on the judge, and decided to work out the time complexity by hand.

The judge performs 10810^8 operations per second. With a time limit of LL seconds it allows 108×L10^8 \times L operations in total.

Suppose a program has time complexity f(N)f(N), the input size is at most NN, and there are TT test cases. The program then performs f(N)×Tf(N) \times T operations. If that number is greater than the allowed number of operations, the program exceeds the time limit. Otherwise it may pass.

Report the verdict for each situation.

Input

The first line contains the number of situations CC. (1C1001 \le C \le 100)

Each of the next CC lines contains a string SS describing the time complexity, the maximum input size NN, the number of test cases TT, and the time limit LL in seconds, separated by spaces. (1N1061 \le N \le 10^6, 1T101 \le T \le 10, 1L101 \le L \le 10, and NN, TT, LL are integers)

SS is one of the following five strings, written without spaces.

  • O(N): f(N)=Nf(N) = N
  • O(N^2): f(N)=N2f(N) = N^2
  • O(N^3): f(N)=N3f(N) = N^3
  • O(2^N): f(N)=2Nf(N) = 2^N
  • O(N!): f(N)=N!f(N) = N!

Output

Print one line per situation. Print TLE! if the program exceeds the time limit, and May Pass. otherwise.