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