import java.util.Scanner; public class Main { public static void main(String[] args) { Scanner scan = new Scanner(System.in); String N = scan.next(); scan.close(); int c = N.length() - 1; if(N.charAt(0) == '9' && N.charAt(1) == '9' && N.charAt(2) >= '5') { c += 1; System.out.println("1.0*10^" + c); System.exit(0); } if(N.charAt(1) == '9' && N.charAt(2) >= '5') { int a = Integer.parseInt(N.substring(0, 1)) + 1; int b = 0; System.out.println(a + "." + b + "*10^" + c); System.exit(0); } if(N.charAt(2) >= '5') { int a = Integer.parseInt(N.substring(0, 1)); int b = 0; if(N.charAt(1) != '9') { b = Integer.parseInt(N.substring(1, 2)) + 1; } System.out.println(a + "." + b + "*10^" + c); }else { int a = Integer.parseInt(N.substring(0, 1)); int b = Integer.parseInt(N.substring(1, 2)); System.out.println(a + "." + b + "*10^" + c); } } }