input()a,b=input().split(' ') a,b=int(a),int(b)wynik=a**bx=str(wynik) print(x[-1])
5 2 6
4
The brand new service which powers Ideone!
Widget for compiling and running the source code in a web browser!