In this problem your goal is to guess some secret permutation A of integers from 1 to 16.

There are 17 tests in this problem. Test number i  for 1 ≤ i ≤ 16 will have the following form:
the first line of the input contains string "ELEMENT" (without quotes)
the second line of the input of the test i contains two integers from 1 to 16 each - i and element A[i] of the secret permutation
the only line of the output file contains one integer - A[i] too.

Input of the last (the 17-th test) will contain the only string "PERMUTATION" (without quotes). For this test your program should output some permutation of integers from 1 to 16 - your variant of the secret permutation.

If this permutation equals to the secret permuation A and passes all the 17 tests with your solution , you will receive 100 points. Otherwise you will receive 0 points. Note that for each wrong try you will receive 20 minutes penalty time after you solved this problem (as in ACM ICPC format)

Let us remind you that after you submit solution you can see a detailed feedback for each test separately.

 You can't use "compile and test" without using custom input. If you want to test your solution on hackerearth platform , please use custom input. 

SAMPLE INPUT
[EXAMPLE OF POSSIBLE TEST #2]
ELEMENT
2 4

[EXAMPLE OF POSSIBLE TEST #17]
PERMUTATION

SAMPLE OUTPUT
4


3 4 5 6 7 1 8 9 10 11 13 15 16 12 2 14
x = raw_input()
if x == "PERMUTATION":
	print("13 15 1 6 14 4 5 7 2 16 9 11 10 12 8 3")
else:
	a, b = map(int, raw_input().split(' '))
	if (a == 1):
		print(13)
	elif a == 2:
		print(15)
	elif a == 3:
		print(1)
	elif a == 4:
		print(6)
	elif a == 5:
		print(14)
	elif a == 6:
		print(4)
	elif a == 7:
		print(5)
	elif a == 8:
		print(7)
	elif a == 9:
		print(2)
	elif a == 10:
		print(16)
	elif a == 11:
		print(9)
	elif a == 12:
		print(11)
	elif a == 13:
		print(10)
	elif a == 14:
		print(12)
	elif a == 15:
		print(8)
	elif a == 16:
		print(3)