1. 

/**
* Angewandte Mathematik, SS09, IFB 2C
* Problem 748 - Exponentiation
* Link: http://uva.onlinejudge.org/index.php?option=com_onlinejudge&Itemid=8&page=show_problem&category=9&problem=689&mosmsg=Submission+received+with+ID+7136232
*
* @author Miesel Christoph
* @author Seilbeck Robert
* @author Wolfram Andre
* @version 1.0, 05/18/2009
*
* Status : Accepted
* Runtime: 0.112
*/
import java.util.*;
import java.math.*;

public class Exponention
{
public static void main(String... args)
{
Scanner sc = new Scanner(System.in);
BigDecimal base;
while(sc.hasNext())
{
base = new BigDecimal(sc.next());
StringBuilder sb = new StringBuilder(base.pow(sc.nextInt()).toPlainString() );
for(int k = sb.length()-1; k>=0; k--)
{
if(sb.charAt(k)=='.')
{
sb.append(0);
break;
}
if(sb.charAt(k) == '0')
{
sb.deleteCharAt(k);
}
else break;

}
if(sb.charAt(0)=='0')
sb.deleteCharAt(0);

System.out.println(sb);
}
}

}