import java.util.Scanner; class Main { public static void main(String[] args) { Scanner sc = new Scanner(System.in); char N[] = new char[100002]; N = sc.next().toCharArray(); sc.close(); int length = N.length; if (N[2] >= '5') { if (N[1] == '9') { N[1] = '0'; if (N[0] == '9') { N[0] = '1'; ++length; } else ++N[0]; } else ++N[1]; } System.out.print(N[0] + "." + N[1] + "*10^" + (length - 1)); } }