1import java.util.*;
 2import java.io.*;
 3import java.math.*;
 4
 5public class Main
 6{
 7    public static void main(String[]ages) throws IOException
 8    {
 9        Scanner cin = new Scanner(System.in);
10        while( cin.hasNextBigDecimal() )
11        {
12            BigDecimal bd = cin.nextBigDecimal();
13            bd = bd.pow(cin.nextInt()).stripTrailingZeros();
14            String output = bd.toPlainString();
15            if( output.substring(0,2).startsWith("0."))
16            {
17                output = output.substring(1);
18            }

19            System.out.println(output);
20        }

21    }

22}
posted on 2008-04-21 21:09  shawnliu  阅读(270)  评论(0编辑  收藏  举报