#include #include #include #include #include #include using namespace std; #define REP(i,n) for(int i=0;i<(n);++i) #define REPS(i,s,t) for(int i=(s);i<(t);++i) #define INF 2000000007 #define MOD 1000000007 #define MAX 100005 typedef unsigned int uint; typedef unsigned long long int ull; typedef long long int ll; //uint dp[MAX]; int main(){ string N;cin>>N; int keta = N.size()-1; int a = (N[0]-'0')*100 + (N[1]-'0')*10 + ((N[2]-'0')>4 ? 10 : 0); float b = 1.0*a/100; if(b>9){b/=10;keta++;} //cout << b << '^' << keta << endl; printf("%0.1f^%d\n",b,keta); return 0; }