#include <algorithm>
#include <cmath>
#include <deque>
#include <iomanip>
#include <iostream>
#include <map>
#include <queue>
#include <set>
#include <stack>
#include <tuple>
#include <vector>
using namespace std;
typedef long long ll;
ll const INF = 1LL << 60;

int main() {
  string s;
  cin >> s;
  s[3] = '8';
  cout << s << endl;
  return 0;
}
#include <iostream>
#include <string>
using namespace std;
int main() {
    string S;
    cin >> S;
    cout << S.substr(0, S.size() - string("FESTIVAL").size()) << endl;
}
