#include <bits/stdc++.h>
using namespace std;

int main() {
  string s;
  cin>>s;

  int c = s.length() - 1;

  int x = (s[0]-'0') *100 + (s[1]-'0') * 10 + s[2] - '0';
  int y;
  if (x % 10 <= 4) {
    y = x / 10;
  } else {
    y = x / 10 + 1;
  }
  if (y == 100) {
    y = 10;
    ++c;
  }
  int a = y / 10;
  int b = y % 10;
  printf("%d.%d*10^%d\n", a, b, c);
}