import java.util.*; public class Main { static final int MOD = 1000000007; public static void main (String[] args) { Scanner sc = new Scanner(System.in); char[] arr = sc.next().toCharArray(); int first = arr[0] - '0'; int second = arr[1] - '0'; int third = arr[2] - '0'; int len = arr.length - 1; if (third >= 5) { second++; if (second >= 10) { second = 0; first++; if (first >= 10) { first = 1; len++; } } } System.out.println(first + "." + second + "*10^" + len); } }