import java.util.*; import java.util.stream.*; class Main { static Scanner s=new Scanner(System.in); static int gInt(){return Integer.parseInt(s.next());} public static void main(String[]$){ String v=s.next(); int i=Integer.parseInt(v.substring(0,3))+5; double d=i/10/10.0; System.out.println(d+"*10^"+(i>=1000?v.length():v.length()-1)); } }