Problem hidden
This problem was hidden by Editorial Board member probably because it has incorrect language version or invalid test data, or description of the problem is not clear.

Problem hidden on 2012-06-13 13:30:33 by :D

FAMILYP - Family Problems

Asif and Nafisa are very interested in solving puzzles.They always try to give one another puzzles to see who is the best.So ,as usual, one day, Nafisa gave Asif a matrix.

The matrix is as follows

A B C D E F G H I J K L M N O P Q R S T U V W X Y Z A B C ......
B C D E F G H I J K L M N O P Q R S T U V W X Y Z A B C D ......
C D E F G H I J K L M N O P Q R S T U V W X Y Z A B C D E ......
D E F G H I J K L M N O P Q R S T U V W X Y Z A B C D E F .......

Assume that the matrix is very huge(both row and column wise). Nafisa describes a special sequence as a sequence  whose first term is 'A'[element at (0,0)], second term is 'B'[element at  (0,1)],third term is 'B'[element at (1,0)],fourth term is 'C'[element at (2,0)]. Now,she asks Asif to find the nth term of this special sequence. Help Asif To solve the problem.


There will be multiple test cases with number N(1<=N<=1000000) per line.


A character ['A'-'Z'] per line for each number N representing the Nth number in the special sequence.



Output: TERM 3 IS B

hide comments
MR. BEAN : 2011-11-30 06:22:39

used EOF and got AC :)

Nnavneetsinha: 2011-10-16 04:49:13

this problem should be renamed as spoj problems

Jeff S: 2011-10-10 18:12:48

This problem is a huge joke. Needs to be deleted or revised by author to work properly. For AC, simply accept input. Do not output anything or you will get WA.

Vika Fitratunnany I: 2011-09-25 15:35:33

i just printed the character instead of "TERM n IS X" and got accepted. weird.

hendrik: 2011-07-14 17:13:52

Hemant: Fix it, please and rejudge.

Last edit: 2011-07-14 17:15:14
Hemant Verma: 2011-07-09 17:20:42

There seems to problem with SPOJ. They lost the input files. Earlier it was alright.

Surya: 2011-06-21 14:43:18

Remove all the previous comments..!!

Last edit: 2011-06-21 14:44:44
luckiezhou: 2011-06-15 16:45:47

input is done by EOF? i tried but failed for several times until i terminate the program whenever meeting a blank line

lazzyboyy: 2011-06-06 22:12:42

this problem is wrong... it's just accepting values....
a program as simple as this one, which is just accepting int values will do[c++ version]:


plz put a limit on test case.... or a case to terminate the program...

Dont post any source code here.
Input is done by EOF, not a terminating value.

Last edit: 2011-06-09 05:00:39
Rohan Kalra: 2011-05-11 19:48:17

There seems to be a problem. It seems to accept a program that only takes input.

Last edit: 2011-05-11 19:51:30

Added by:Hemant Verma
Time limit:1s
Source limit:50000B
Memory limit:1536MB
Cluster: Cube (Intel G860)
Resource:Alkhwarizm 2009