import java.math.BigDecimal;
import java.util.Scanner;
/**
*
* @author baoyou E-mail:curiousby@163.com
* @version 创建时间:2015年9月30日 下午2:40:54
* des:
*/
public class BaoyPoj1001Test {
// 1、stripTrailingZeros() ,返回类型为BigDecimal的小于此数的但除去尾部的0的数值。
// 2、toPlainString(),返回BigDecimal类型的String类型字符串。
public static void main(String args[]) throws Exception
{
Scanner in = new Scanner(System.in);
while (in.hasNext()) {
BigDecimal a = in.nextBigDecimal();
int n = in.nextInt();
a= a.pow(n);
// a.stripTrailingZeros()
//效果 1.0100^12 =1.126825030131969720661201000000000000000000000000
// -> 转化为 1.126825030131969720661201
// a.toPlainString()
//效果 0.4321^20 =5.148554641076956121994511276767154838481760200726351203835429763013462401E-8
// ->0.00000005148554641076956121994511276767154838481760200726351203835429763013462401
String str = a.stripTrailingZeros().toPlainString();
if (str.startsWith("0."))
str = str.substring(1);
System.out.println(str);
}
}
}