#include <bits/stdc++.h>
using namespace std;
int main() {
  ios_base::sync_with_stdio(0);
  cin.tie(NULL);
  cout.tie(NULL);
  long long int n, sum = 0, count = 0, m, flag = 0, che = 0;
  string x;
  cin >> x;
  vector<char> v;
  int k = 0;
  for (int i = 0; i < x.length(); i++) {
    if (x[i] != '0') {
      if (x[i] != '.') {
        che = 1;
        break;
      }
    }
  }
  if (che == 0) {
    cout << 0;
    return 0;
  }
  while (x[k] == '0') ++k;
  if (x[k] == '.') {
    count = 1;
    int i = k + 1;
    while (x[i] == '0') {
      ++i;
      count++;
    }
    for (int j = i; j < x.length(); j++) {
      v.push_back(x[j]);
    }
    for (int j = v.size() - 1; j >= 0; j--) {
      if (v[j] == '0') {
        v.erase(v.begin() + j);
      } else
        break;
    }
    if (v.size() != 1) {
      v.insert(v.begin() + 1, '.');
    }
    for (int i = 0; i < v.size(); i++) cout << v[i];
    cout << "E-";
    cout << count;
    return 0;
  }
  count = 0;
  for (int j = k; j < x.length(); j++) {
    v.push_back(x[j]);
    count++;
    if (x[j] == '.') flag = 1;
  }
  for (int j = v.size() - 1; j >= 0; j--) {
    if (v[j] == '0') {
      v.erase(v.begin() + j);
      if (flag == 1) count--;
    } else
      break;
  }
  if (v.size() != 1 && flag == 0) {
    v.insert(v.begin() + 1, '.');
  }
  if (flag == 1 && v.size() > 1) {
    v.insert(v.begin() + 1, '.');
    for (int i = 2; i < v.size(); i++) {
      if (v[i] == '.') {
        sum = i;
        v.erase(v.begin() + i);
        flag = 1;
        break;
      }
    }
  }
  if (flag == 1) {
    count = 0;
    for (int i = k; i < x.length(); i++, count++)
      if (x[i] == '.') break;
  }
  if (flag == 1) {
    for (int i = v.size(); i >= 0; i--) {
      if (v[i] != '0') {
        if (v[i] != '.') {
          che = 1;
          break;
        }
      }
      if (v[i] == '0') v.erase(v.begin() + i);
    }
  }
  if (v[v.size() - 1] == '.') {
    v.erase(v.end() - 1);
  }
  for (int i = 0; i < v.size(); i++) cout << v[i];
  if (count > 1) {
    cout << "E";
    cout << count - 1;
  }
  return 0;
}
