1)
x = int(input())
if x < 0:
print(x ** 2)
elif x > 0:
print(x ** 3)
2)x = int(input())
if x > 0:
print(2 * x - 10)
else:
1)
x = int(input())
if x < 0:
print(x ** 2)
elif x > 0:
print(x ** 3)
2)x = int(input())
if x > 0:
print(2 * x - 10)
else:
print(x ** 2)