import java.math.BigDecimal;
import java.util.Scanner;
public class Main {
public static void main(String[] args) {
// TODO Auto-generated method stub
Scanner sc=new Scanner(System.in);
BigDecimal x;
String z="0";
int n;
while(sc.hasNextBigDecimal())
{
x=sc.nextBigDecimal();
n=sc.nextInt();
x=x.pow(n);
String s=x.stripTrailingZeros().toPlainString();
if(s.charAt(0)=='0')
{
s=s.substring(1, s.length());
}
System.out.println(s);
}
}
}