n = int(input())
if n % 2 == 0:
print(n ** 2)
elif n % 10 == 3:
print(n ** 3)
else:
print(n)
Copyright © 2024 SCHOLAR.TIPS - All rights reserved.
Answers & Comments
n = int(input())
if n % 2 == 0:
print(n ** 2)
elif n % 10 == 3:
print(n ** 3)
else:
print(n)