import java.io.OutputStream; import java.io.IOException; import java.io.InputStream; import java.io.PrintWriter; import java.util.Scanner; /** * Built using CHelper plug-in * Actual solution is at the top */ public class Main { public static void main(String[] args) { InputStream inputStream = System.in; OutputStream outputStream = System.out; Scanner in = new Scanner(inputStream); PrintWriter out = new PrintWriter(outputStream); No668 solver = new No668(); solver.solve(1, in, out); out.close(); } static class No668 { public void solve(int testNumber, Scanner in, PrintWriter out) { char[] N = in.next().toCharArray(); int c = 0; for (int i = N.length - 1; i > 0; i--) { N[i] += c; if (N[i] - '0' >= 5) N[i]++; if (N[i] - '0' == 10) { c = 1; } else { c = 0; } } int L = N.length - 1; if (N[1] - '0' == 10) { N[1] = '0'; N[0]++; //L++; } if (N[0] - '0' == 10) { N[1] = (char) ('0' + (N[0] - '0') % 10); N[0] = (char) ('0' + (N[0] - '0') / 10); L++; } out.println((N[0] - '0') + "." + (N[1] - '0') + "*10^" + L); } } }