QOJ.ac

QOJ

Time Limit: 1.0 s Memory Limit: 256 MB Total points: 100 Hackable ✓

#11533. MIT Time

统计

Busy Beaver arrived to his MIT class late! However, thanks to “MIT time”, all classes actually start $5$ minutes later than the posted time.

problem_11533_1.jpg

Busy Beaver wants to make a generalization of this system. Namely, if someone arrives $N$ minutes late to an event, then:

  • if $N \le 5$, they arrived on “MIT time”;
  • if $5 < N \le 25$, they arrived on “MIT$^2$ time”;
  • if $25 < N \le 125$, they arrived on “MIT$^3$ time”;
  • and so on. Formally, if $k \ge 2$, then ”MIT$^k$ time” is when $5^{k-1} < N \le 5^k$.

Given $N$, determine on which of “MIT time”, “MIT$^2$ time”, etc. this person arrived at.

Input

The first line contains a single integer $T$ $(1 \leq T \leq 10^5)$ --- the number of test cases.

The only line of each test case contains a single integer $N$ ($1 \le N \le 10^9$) --- the number of minutes late to an event the person is.

Output

For each test case, output a single line that consists of either “MIT time” or “MIT^$k$ time” for some integer $k \geq 2$, corresponding to the time this person arrives at.

Example

Input

5
4
5
13
126
1

Output

MIT time
MIT time
MIT^2 time
MIT^4 time
MIT time

Explanation

In the first test case, $N = 4$, which is at most $5$, so this is MIT time.

In the second test case, $N = 5$, which is equal to $5$, so this is also MIT time.

In the third test case, $N = 13$, which is not more than $25$ but more than $5$, so this is MIT$^2$ time.

The fourth test case, $N = 126$, which is not more than $5^4=625$ but more than $5^3 = 125$, so this is MIT$^4$ time.

About Issues

We understand that our problem archive is not perfect. If you find any issues with the problem, including the statement, scoring configuration, time/memory limits, test cases, etc.

You may use this form to submit an issue regarding the problem. A problem moderator will review your issue and proceed it properly.

STOP! Before you submit an issue, please READ the following guidelines:

  1. This is not a place to publish a discussion, editorial, or requests to debug your code. Your issue will only be visible by you and problem moderators. Other users will not be able to view or reply your issues.
  2. Do not submit duplicated issues. If you have already submitted one, please wait for an moderator to review it. Submitting multiple issues will not speed up the review process and might cause your account to be banned.
  3. Issues must be filed in English or Chinese only.
  4. Be sure your issue is related to this problem. If you need to submit an issue regarding another problem, contest, category, etc., you should submit it to the corresponding page.

Active Issues 0

No issues in this category.

Closed/Resolved Issues 0

No issues in this category.