#include<bits/stdc++.h>
using namespace std;
#define     ll              long long
#define     IOS             ios_base::sync_with_stdio(false);cin.tie(0);
#define     endl            "\n"
#define     deb(x)          cout<<#x<<" : "<<x
#define     mod             (int)1e9+7
#define     up              upper_bound
#define     lb              lower_bound
#define     fo(a,i,n)         for(i=a;i<n;i++)
#define     fi              first 
#define     se              second 
#define     mp              make_pair 
#define     pb              push_back
#define     all(x)          x.begin(), x.end()
#define     clr(x)          memset(x, 0, sizeof(x))
#define     sortall(x)      sort(all(x))
#define     tr(it, a)       for(auto it = a.begin(); it != a.end(); it++)
#define     PI              3.1415926535897932384626

#define isOn                (S, j) (S & (1 << j))
#define setBit              (S, j) (S |= (1 << j))
#define clearBit            (S, j) (S &= ~(1 << j))
#define toggleBit           (S, j) (S ^= (1 << j))
#define lowBit              (S) (S & (-S))
#define setAll              (S, n) (S = (1 << n) - 1)
#define modulo              (S, N) ((S) & (N - 1))
#define isPowerOfTwo        (S) (!(S & (S - 1)))
#define nearestPowerOfTwo   (S) ((int)pow(2.0, (int)((log((double)S) / log(2.0)) + 0.5)))
#define turnOffLastBit      (S) ((S) & (S - 1))
#define turnOnLastZero      (S) ((S) | (S + 1))
#define turnOffLastConsecutiveBits       (S) ((S) & (S + 1))
#define turnOnLastConsecutiveZeroes      (S) ((S) | (S - 1))


typedef pair<ll, ll>    pii;
typedef pair<ll, ll>    pl;
typedef vector<ll>      vi;
typedef vector<ll>      vl;
typedef vector<pii>     vpii;
typedef vector<pl>      vpl;
typedef vector<vi>      vvi;
typedef vector<vl>      vvl;



#define TRACE
#ifdef TRACE
#define trace(...) __f(#__VA_ARGS__, __VA_ARGS__)
template <typename Arg1>
void __f(const char* name, Arg1&& arg1) {
    cout << name << " : " << arg1 << endl;
    //use cerr if u want to display at the bottom
}
template <typename Arg1, typename... Args>
void __f(const char* names, Arg1&& arg1, Args&&... args) {
    const char* comma = strchr(names + 1, ','); cout.write(names, comma - names) << " : " << arg1 << " | "; __f(comma + 1, args...);
}
#else
#define trace(...)
#endif

ll gcd(ll a,ll b)
{
    if(b == 0)
        return a;
    return gcd(b,a%b);
}




int main(){
// #ifndef ONLINE_JUDGE
//     freopen("input.txt","r",stdin);
//     freopen("output1.txt","w",stdout);
// #endif
    IOS;
    int t=1;
    // cin>>t;

    while(t--)
    {
        float n;
        cin>>n;
        cout<<ceil(n/100)<<endl;
        
    

    }   
    return 0;
}
#include<bits/stdc++.h>
#define ll long long
#define ld long double
#define pb push_back
#define mp make_pair
#define fi first
#define se second
#define REP(i,j) for(int i=0;i<j;i++)
#define REPA(i,j) for(int i=1;i<=j;i++)
#define FORN(i,j,k) for(int i=j;i<k;i++)
#define vi vector<int>
#define vvi vector<vi >
#define pii pair<int,int>
#define vpii vector<pii >
#define all(a) a.begin(),a.end()
using namespace std;
const int INF=1<<30;
inline void read(int &x){
//	short neg=1;
	x=0;
	char c=getchar();
	/*while(c<'0'||c>'9'){
		if(c=='-')neg=-1;
		c=getchar();
	}*/
	while(c>='0'&&c<='9'){
		x=(x<<3)+(x<<1)+(c^48),c=getchar();
	}
//	x*=neg;
}
int a,b; 
int main(void){
	cin>>a>>b;
	int cnta=(a/100)+(a/10%10)+(a%10),cntb= (b/100)+(b/10%10)+(b%10);
	cout<<max(cnta,cntb);
	return 0;
}
