#include <bits/stdc++.h>
using namespace std;
const int mm = 2e5 + 10;
long long a1, a2, a3, a4, a5, a6, a7, a8, a9, ans, ez1, n, m, k;
string s, s1, s2;
int inp[40][40];
bool flag[1000];
vector<string> rr;
bool sos(const pair<int, int> &a, const pair<int, int> &b) {
  return (a.first > b.first);
}
void input() {
  cin >> s;
  n = s.size();
}
void solve() {
  bool y = 0;
  for (int i = n - 1; i >= 0; i--) {
    if (s[i] == '0') {
      s.erase(s.begin() + i, s.begin() + i + 1);
      y = 1;
    } else
      break;
  }
  n = s.size();
  for (int i = 0; i < n; i++) {
    if (s[i] == '.' && s[i - 1] == '9') {
      cout << "GOTO Vasilisa." << endl;
      return;
    }
    if (s[i] == '.') {
      a1 = i;
      break;
    }
    s1 += s[i];
  }
  for (int i = a1 + 1; i < n; i++) {
    y = 0;
    if (s[i] == '5') continue;
    if (s[i] < '5') {
      cout << s1 << endl;
      return;
    } else if (s[i] > '5') {
      s1[s1.size() - 1]++;
      cout << s1 << endl;
      return;
    }
  }
  if (y)
    cout << s1 << endl;
  else {
    s1[s1.size() - 1]++;
    cout << s1 << endl;
  }
}
int main() {
  cin.tie(0);
  input();
  solve();
  return 0;
}
