#include <bits/stdc++.h> using namespace std; int main(){ int a,s,d,f=0; cin>>a,s,d; f=a/5; f=f+s/100*3; f=f+d/2; cout<<f; return 0; }