MAY99_2 - Manku Word


Manku loves Codechef's Lucky Number and now he decided to start Manku words :)

Manku words are those words which have only letters 'm', 'a', 'n', 'k', 'u'.

Generally in english, 'a' comes before 'k', 'k' comes before 'm' and so on. But in Manku's dictionary, 'm' comes before 'a', 'a' comes before 'n', 'n' comes before 'k', 'k' comes before 'u'.

Thus according to manku

  • 1st manku word is m
  • 2nd manku word is a
  • 3rd manku word is n
  • 4th manku word is k
  • 5th manku word is u
  • 6th manku word is mm
  • 7th manku word is ma
and so on ...

Your task is very simple. For given value of n, write the n-th manku word.

Input

First line of input contains an integer t (1 <= t <= 100).

Each test case contains an integer n (1 <= n <= 10^18).

Output

For every test case print the n-th manku word on separate line.

Example

Input:
5
10
4
16
17
31

Output:
mu
k
nm
na
mmm

hide comments
rahul_verma: 2015-08-29 20:17:22

nice problem......not easy for me..!!!!!!!

gaurav117: 2015-08-28 13:18:51

interesting problem, a must for beginners.

Deepak Singh Tomar: 2015-08-26 15:56:50

200th and counting :)

iharsh234: 2015-08-20 18:05:43

easy one but still thinking how someone could do that in 0.00 sec the best i did is 0.02 sec. in PYTH 2.7.

Parth: 2015-05-26 16:35:28

nice problem....ac in 1st go...:)

Dhruv k14: 2015-04-03 00:17:48

AC in 1st go really gives you unparallelled confidence boost,especially if you spent 3 hrs on the problem :)

Daksh: 2015-01-15 11:52:38

A silly mistake give 3 wrong Answer...(Beware of long long)

Last edit: 2015-01-15 11:54:12
:.Mohib.:: 2015-01-07 12:20:51

Nice problem !

Malinga: 2015-01-07 08:51:40

while submitting I'm getting error ..Language available on Cube Clusters for c++ ..how to submit then

Mauro Persano: 2014-12-26 14:06:03

Why the language restriction?! It makes no sense.


Added by:Mayank Tuteja
Date:2013-01-17
Time limit:1s
Source limit:50000B
Memory limit:1536MB
Cluster: Cube (Intel G860)
Languages:All except: ASM32 ASM64 GAWK BASH BF CSHARP C99 CLPS CLOJURE LISP sbcl LISP clisp D ERL FSHARP FORTRAN GO HASK ICON ICK JS-RHINO LUA NEM NICE NODEJS OCAML PAS-GPC PIKE PRLG-swi RUBY SCALA SCM guile SCM qobi SED ST TCL WHITESPACE
Resource:similar to codechef's lucky number