4741
x, y = input().split()
z = int(input())
x = int(x)
y = int(y)
print((x+(y+z)//60)%24,(y+z)%60)
1542
x = int(input())
sum = 0
for i in range(1,x+1):
if x % i == 0:
sum = sum + 1
if sum <= 2:
print('prime')
elif sum > 2:
print('composite')
1558
x = int(input())
def f(x):
rev = 0
while x!=0 :
rev = rev*10 + x%10
x=x//10
return rev
print(f(x))
1535
x = int(input())
data = list(map(int, input().split()))
max = 0
z = 0
for i in range(x) :
if data[i] > max:
max = data[i]
z = i
print(z+1)
1536
x = int(input())
data = list(map(int, input().split()))
l = data[0]
z = 0
for i in range(0,x) :
if data[i] < l:
l = data[i]
print(l)