# # # # # # # print('Hello 윤지 바보야\ndkssud')# # # # # ## # # # # # # print('Hello', end=', ')# # # # # # # print('World')# # # # # ## # # # # # # print('Hello', 'World', 'Apple', 'is', 'Good', sep=', ')# # # # # ## # # # # # # print('Hello')# # # # # ## # # # # # print('Hello World')# # # # ## # # # # print('Hello\nWorld')# # # ## # # # print("'Hello'")# # ## # # print('"Hello World"')# ## # print('"!@#$%^&*()', "'", sep='')## print('\"C:\\Download\\\'hello\'.py\"')# print('print(\"Hello\\nWorld\")')# a = input()# print(a)# n = input()# n = int(n)# print(n)# f = input()# f = float(f)# print(f)# a = int(input())# b = int(input())# print(a)# print(b)# a = (input())# b = (input())# print(b)# print(a)# a = input()# print(a)# print(a)# print(a)# a, b = map(int, input().split())# print(a)# print(b)# a, b = input().split()# print(b, a, sep = ' ')# s = input()# print(s, s, s)# a, b = input().split(':')# print(a, b, sep = ':')# y, m, d = input().split('.')# print(d, m, y, sep = '-')# a, b = input().split('-')# print(a, b, sep = '')# s = input()# print(s[0])# print(s[1])# print(s[2])# print(s[3])# print(s[4])# s = input()# print(s[0:2], end = ' ')# print(s[2:4], end = ' ')# print(s[4:6])# a, b, c = input().split(':')# print(b)# a, b = input().split()# s = a+b# print(s)# a = int(input())# print(-a)# a = input()# a = ord(a)# a = a + 1# a = chr(a)# print(a)# a, b = map(int,input().split())# c = a-b# print(c)# f1, f2 = map(float, input().split())# c = f1*f2# print(c)# a, b = input().split()# print(a*int(b))# a = input()# b = input()# print(int(a)*b)# a,b = map(int , input().split())# c = a**b# print(c)# a, b = map(float, input().split())# c = a**b# print(c)# a, b = map(int, input().split())# c = a//b# print(c)# a, b = map(int , input().split())# c = a % b# print(c)# a = input()# a = float(a)# print(format(a, ".2f"))# a, b = map(float, input().split())# c = a / b# print(format(c, ".3f"))# a, b = map(int , input().split())# print(a+b)# print(a-b)# print(a*b)# print(a//b)# print(a%b)# print(format(a/b, ".2f"))# a, b, c = map(int , input().split())# d = a + b + c# print(d, end = ' ')# print(format(d/3, ".2f"))# a = int(input())# print(a*2)# a, b = map(int , input().split())# print(a*2**b)# a, b = map(int , input().split())# print(a<b)# a, b = map(int , input().split())# print(a==b)# a, b = map(int , input().split())# print(a<=b)# a, b = map(int , input().split())# print(a!=b)# a = int(input())# print(a!=0)# a = bool(int(input()))# print(not a)# a, b = map(int , input().split())# print(bool(a) and bool(b))# a, b = map(int , input().split())# print(bool(a) or bool(b))# a, b = map(int , input().split())# print(bool(a)!=bool(b))# a, b = map(int , input().split())# print(bool(a)==bool(b))# a, b = map(int, input().split())# print(bool(a)==0 and bool(b) ==0)# a = int(input())# print(~a)# a, b = map(int, input().split())# print(a&b)# a, b = map(int , input().split())# print(a|b)# a, b = map(int, input().split())# print(a^b)# a, b = map(int, input().split())# c = (a if (a>=b) else b)# print(int(c))# a, b, c = map(int , input().split())# d = (a if a<b else b) if ((a if a<b else b)<c) else c# print(int(d))# a, b, c = map(int, input().split())# if a%2==0:# print(a)# if b%2==0:# print(b)# if c%2==0:# print(c)# a, b, c = map(int , input().split())# if a%2==0:# print('even')# else:# print('odd')# if b%2==0:# print('even')# else:# print('odd')# if c%2==0:# print('even')# else:# print('odd')# a = int(input())# if (a<0) and (a%2==0):# print('A')# if (a<0) and (a%2==1):# print('B')# if (a>0) and (a%2==0):# print('C')# if (a>0) and (a%2==1):# print('D')# n = int(input())# if n>=90 :# print('A')# else :# if n>=70 :# print('B')# else :# if n>=40 :# print('C')# else :# print('D')# a = input()# if a=='A':# print('best!!!')# elif a=='B':# print('good!!')# elif a=='C':# print('run!')# elif a=='D':# print('slowly~')# else:# print('what?')# a = int(input())# if a==1 or a==2 or a==12:# print('winter')# elif a==3 or a==4 or a==5:# print('spring')# elif a==6 or a==7 or a==8:# print('summer')# else:# print('fall')# a = int(input())# while a!=0:# print(a)# a-=1# a = int(input())# a-=1# while a+1!=0:# print(a)# a-=1# c = ord(input())# t = ord('a')# while t<=c :# print(chr(t), end=' ')# t += 1# a = int(input())# for i in range(a+1):# print(i)# a = int(input())# for i in range(a+1):# print(i)# a = int(input())# s = 0# for i in range(1, a+1):# if i%2==0:# s+=i# print(s)# while True:# a=input()# print(a)# if a=='q':# break# a = int(input())# s = 0# d = 0# for i in range(1, a+1):# if s<a:# s += i# elif s>=a:# d = i# break;# print(d-1)# a, b = map(int, input().split())# for i in range(1, a+1):# for j in range(1, b+1):# print(i, j, sep = ' ')# n = input(n)# for i in range(1, F):# print('%X' % n, '*%X' % i, '=%X' % (n i), sep='')# n = int(input())# for i in range(1, n+1):# if i%10 == 3 or i%10==6 or i%10==9:# print("X", end = ' ')# else:# print(i, end = ' ')# a, b, c = map(int, input().split())# d = 0# for i in range (0, a):# for j in range (0, b):# for k in range (0, c):# print(i, j, k, sep = ' ')# d+=1# print(d)# a, b, c, d = map(int, input().split())# print(format(ab*c*d/8/1024/1024, ".1f"), end = ' ')# print("MB")# a, b, c = map(int, input().split())# print(format(a*b*c/8/1024/1024, ".2f"), end = ' ')# print("MB")# a = int(input())# s = 0# for i in range(1, a+1):# if s<a:# s += i# elif s>=a:# break;# print(s)# a = int(input())# for i in range(1, a + 1):# if(i%3==0):# print('', end = '')# else:# print(i, end = ' ')a, b, c = map(int, input().split())print(a*(b**(c-1)))
top of page
bottom of page
# # # # # # # print('Hello 윤지 바보야\ndkssud')# # # # # ## # # # # # # print('Hello', end=', ')# # # # # # # print('World')# # # # # ## # # # # # # print('Hello', 'World', 'Apple', 'is', 'Good', sep=', ')# # # # # ## # # # # # # print('Hello')# # # # # ## # # # # # print('Hello World')# # # # ## # # # # print('Hello\nWorld')# # # ## # # # print("'Hello'")# # ## # # print('"Hello World"')# ## # print('"!@#$%^&*()', "'", sep='')## print('\"C:\\Download\\\'hello\'.py\"')# print('print(\"Hello\\nWorld\")')# a = input()# print(a)# n = input()# n = int(n)# print(n)# f = input()# f = float(f)# print(f)# a = int(input())# b = int(input())# print(a)# print(b)# a = (input())# b = (input())# print(b)# print(a)# a = input()# print(a)# print(a)# print(a)# a, b = map(int, input().split())# print(a)# print(b)# a, b = input().split()# print(b, a, sep = ' ')# s = input()# print(s, s, s)# a, b = input().split(':')# print(a, b, sep = ':')# y, m, d = input().split('.')# print(d, m, y, sep = '-')# a, b = input().split('-')# print(a, b, sep = '')# s = input()# print(s[0])# print(s[1])# print(s[2])# print(s[3])# print(s[4])# s = input()# print(s[0:2], end = ' ')# print(s[2:4], end = ' ')# print(s[4:6])# a, b, c = input().split(':')# print(b)# a, b = input().split()# s = a+b# print(s)# a = int(input())# print(-a)# a = input()# a = ord(a)# a = a + 1# a = chr(a)# print(a)# a, b = map(int,input().split())# c = a-b# print(c)# f1, f2 = map(float, input().split())# c = f1*f2# print(c)# a, b = input().split()# print(a*int(b))# a = input()# b = input()# print(int(a)*b)# a,b = map(int , input().split())# c = a**b# print(c)# a, b = map(float, input().split())# c = a**b# print(c)# a, b = map(int, input().split())# c = a//b# print(c)# a, b = map(int , input().split())# c = a % b# print(c)# a = input()# a = float(a)# print(format(a, ".2f"))# a, b = map(float, input().split())# c = a / b# print(format(c, ".3f"))# a, b = map(int , input().split())# print(a+b)# print(a-b)# print(a*b)# print(a//b)# print(a%b)# print(format(a/b, ".2f"))# a, b, c = map(int , input().split())# d = a + b + c# print(d, end = ' ')# print(format(d/3, ".2f"))# a = int(input())# print(a*2)# a, b = map(int , input().split())# print(a*2**b)# a, b = map(int , input().split())# print(a<b)# a, b = map(int , input().split())# print(a==b)# a, b = map(int , input().split())# print(a<=b)# a, b = map(int , input().split())# print(a!=b)# a = int(input())# print(a!=0)# a = bool(int(input()))# print(not a)# a, b = map(int , input().split())# print(bool(a) and bool(b))# a, b = map(int , input().split())# print(bool(a) or bool(b))# a, b = map(int , input().split())# print(bool(a)!=bool(b))# a, b = map(int , input().split())# print(bool(a)==bool(b))# a, b = map(int, input().split())# print(bool(a)==0 and bool(b) ==0)# a = int(input())# print(~a)# a, b = map(int, input().split())# print(a&b)# a, b = map(int , input().split())# print(a|b)# a, b = map(int, input().split())# print(a^b)# a, b = map(int, input().split())# c = (a if (a>=b) else b)# print(int(c))# a, b, c = map(int , input().split())# d = (a if a<b else b) if ((a if a<b else b)<c) else c# print(int(d))# a, b, c = map(int, input().split())# if a%2==0:# print(a)# if b%2==0:# print(b)# if c%2==0:# print(c)# a, b, c = map(int , input().split())# if a%2==0:# print('even')# else:# print('odd')# if b%2==0:# print('even')# else:# print('odd')# if c%2==0:# print('even')# else:# print('odd')# a = int(input())# if (a<0) and (a%2==0):# print('A')# if (a<0) and (a%2==1):# print('B')# if (a>0) and (a%2==0):# print('C')# if (a>0) and (a%2==1):# print('D')# n = int(input())# if n>=90 :# print('A')# else :# if n>=70 :# print('B')# else :# if n>=40 :# print('C')# else :# print('D')# a = input()# if a=='A':# print('best!!!')# elif a=='B':# print('good!!')# elif a=='C':# print('run!')# elif a=='D':# print('slowly~')# else:# print('what?')# a = int(input())# if a==1 or a==2 or a==12:# print('winter')# elif a==3 or a==4 or a==5:# print('spring')# elif a==6 or a==7 or a==8:# print('summer')# else:# print('fall')# a = int(input())# while a!=0:# print(a)# a-=1# a = int(input())# a-=1# while a+1!=0:# print(a)# a-=1# c = ord(input())# t = ord('a')# while t<=c :# print(chr(t), end=' ')# t += 1# a = int(input())# for i in range(a+1):# print(i)# a = int(input())# for i in range(a+1):# print(i)# a = int(input())# s = 0# for i in range(1, a+1):# if i%2==0:# s+=i# print(s)# while True:# a=input()# print(a)# if a=='q':# break# a = int(input())# s = 0# d = 0# for i in range(1, a+1):# if s<a:# s += i# elif s>=a:# d = i# break;# print(d-1)# a, b = map(int, input().split())# for i in range(1, a+1):# for j in range(1, b+1):# print(i, j, sep = ' ')# n = input(n)# for i in range(1, F):# print('%X' % n, '*%X' % i, '=%X' % (n i), sep='')# n = int(input())# for i in range(1, n+1):# if i%10 == 3 or i%10==6 or i%10==9:# print("X", end = ' ')# else:# print(i, end = ' ')# a, b, c = map(int, input().split())# d = 0# for i in range (0, a):# for j in range (0, b):# for k in range (0, c):# print(i, j, k, sep = ' ')# d+=1# print(d)# a, b, c, d = map(int, input().split())# print(format(ab*c*d/8/1024/1024, ".1f"), end = ' ')# print("MB")# a, b, c = map(int, input().split())# print(format(a*b*c/8/1024/1024, ".2f"), end = ' ')# print("MB")# a = int(input())# s = 0# for i in range(1, a+1):# if s<a:# s += i# elif s>=a:# break;# print(s)# a = int(input())# for i in range(1, a + 1):# if(i%3==0):# print('', end = '')# else:# print(i, end = ' ')a, b, c = map(int, input().split())print(a*(b**(c-1)))