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--) { if (N[i] - '0' >= 5 && i > 1) N[i]++; N[i] += c; if (N[i] - '0' >= 10) { c = 1; N[i] = (char) ((N[i] - '0') % 10 + '0'); } else { c = 0; } } int L = N.length - 1; if (N[1] - '0' >= 10) { N[1] = (char) ((N[1] - '0') % 10 + '0'); N[0]++; //L++; } N[0] += c; 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); } } }