#include <bits/stdc++.h>
using namespace std;
#define MOD 1000000007
typedef long long ll;

int main()
{
    string s;
    cin >> s;
    int count = 0;
    for (int i = 0; i <= 8; i++)
    {
        if (s[i] == 'Z' and s[i + 1] == 'O' and s[i + 2] == 'N' and s[i + 3] == 'e')
        {
            count++;
        }
    }
    cout << count;
}
#include<bits/stdc++.h>
using namespace std;
#define ll long long int
#define FAST ios::sync_with_stdio(false); cin.tie(0),cout.tie(0);
//(a/b)%m =((a%m)*pow(b,m-2)%m)%m

void solve(){
    int n;
    cin>>n;
    cout<<(100 - (n%100))<<"\n";
    return;
}

int main(){
    FAST 
    int T=1;
    //cin>>T;
    while(T--){
        solve();
    }
    return 0;
}