MIT Time
시간 제한1초메모리 제한256 MB
N분 지각했을 때 N이 (5^(k-1), 5^k] 구간에 속하는 k를 찾고, k=1이면 MIT time을 출력한다.
문제
Busy Beaver arrived to his MIT class late! However, thanks to "MIT time", all classes actually start minutes later than the posted time.
Busy Beaver wants to make a generalization of this system. Namely, if someone arrives minutes late to an event, then:
- if , they arrived on "MIT time";
- if , they arrived on "MIT time";
- if , they arrived on "MIT time";
- and so on. Formally, if , then "MIT time" is when .
Given , determine on which of "MIT time", "MIT time", etc. this person arrived at.
입력
The first line contains a single integer --- the number of test cases.
The only line of each test case contains a single integer () --- the number of minutes late to an event the person is.
출력
For each test case, output a single line that consists of either "MIT time" or "MIT^ time" for some integer , corresponding to the time this person arrives at.
힌트
In the first test case, , which is at most , so this is MIT time.
In the second test case, , which is equal to , so this is also MIT time.
In the third test case, , which is not more than but more than , so this is MIT time.
The fourth test case, , which is not more than but more than , so this is MIT time.