import java.util.Arrays; import java.util.LinkedList; import java.util.Scanner; public class Main { public static final long MOD = 1000000007; public static void main(String[] args) { Scanner sc = new Scanner(System.in); final char[] chs = sc.next().toCharArray(); int begin = 0; //while(chs[begin] == 0){ begin++; } int size = 0; int[] ans = new int[3]; ans[0] = Character.getNumericValue(chs[begin + 0]); ans[1] = Character.getNumericValue(chs[begin + 1]); ans[2] = Character.getNumericValue(chs[begin + 2]); if(ans[2] >= 5){ ans[begin + 2] = 0; ans[begin + 1] += 1; } if(ans[1] >= 10){ ans[begin + 1] %= 10; ans[begin + 0] += 1; } if(ans[0] >= 10){ ans[begin + 1] = ans[begin] % 10; ans[begin + 0] /= 10; size++; } size += (chs.length - (begin + 1)); //System.out.println(Arrays.toString(ans)); System.out.println(ans[0] + "." + ans[1] + "*10^" + size); } }