M = int(input()
N = int(input()
K = int(input()
y = (M**N/2) * (M**2+23)
print(y%K)
Copyright © 2024 SCHOLAR.TIPS - All rights reserved.
Answers & Comments
M = int(input()
N = int(input()
K = int(input()
y = (M**N/2) * (M**2+23)
print(y%K)