#include<bits/stdc++.h>
using namespace std;
#define ll long long int
#define set_bits(a) __builtin_popcount(a)
#define pb push_back
#define pf push_front
#define mod 1000000007
#define M 998244353
#define fi first
#define se second
#define endl '\n'
#define INF 1e18
#define PI 3.14159265358979323846
#define fast ios_base::sync_with_stdio(false); cin.tie(NULL); cout.tie(NULL);

bool isPrime(ll n){
  if(n<=1) return false;
  if(n<=3) return true;

  if(n%2==0 || n%3==0) return false;
  for(ll i=5; i*i<=n; i++){
      if(n%i==0 || n%(i+2)==0){
        return false;
      }
  }
  return true;
}

int main()
{
  #ifndef ONLINE_JUDGE
  freopen("input.txt", "r", stdin);
  freopen("output.txt", "w", stdout);
  #endif

  string s;
  cin>>s;
  string ans = "";
  for(ll i=0;i<s.length();i++)
  {
    if(s[i]=='.'){
      break;
    }
    ans+=s[i];
  }
  cout<<ans<<endl;
}
#include <bits/stdc++.h>
#define loop(n,i) for(int i=0;i<n;i++)
using namespace std;

int main(){
  int n;
  cin >> n;
  cout << n-1 << endl;
  return 0;
}