#include <bits/stdc++.h>
using namespace std;
#define rep(i,n) for(int i = 0; i < (n); i++)
#define ALL(v) (v).begin(),(v).end()
using ll = long long;
using P = pair<int, int>;
const int INF = 1e9;
const long long LINF = 1e18;
const long long MOD = 1e9 + 7;

signed main(){
    string s;
    cin >> s;
    cout << s.substr(0, s.size() - 8) << endl;
    return 0;
}
#include <iostream>
using namespace std;

int main()
{
  string name;
  int count = 0;
  getline(cin,name);

  /*if (name == "FESTIVAL")
  {
    cout << "Yes" << endl;
  }*/

  if(name[name.length()-1] == 'L')
  {
    for(int i = 0; i < name.length()-8; i++)
    {
      cout << name[i];
    }
  }
  cout << endl;
}
