#include typedef long long ll; const int INF = 1e9,MOD = 1e9+7,ohara = 1e6; const ll LINF = 1e18; using namespace std; #define rep(i,n) for(ll (i)=0;(i)<(int)(n);(i)++) #define rrep(i,a,b) for(ll i=(a);i<(b);i++) #define rrrep(i,a,b) for(ll i=(a);i>=(b);i--) #define all(v) (v).begin(), (v).end() #define pb(q) push_back(q) #define Size(n) (n).size() #define Cout(x) cout<<(x)<>s; rep(i,Size(s)){ if(s[i]=='0')ans+=4; else if(s[i]=='1')ans+=3; else if(s[i]=='2')ans+=3; else if(s[i]=='3')ans+=3; else if(s[i]=='4')ans+=4; else if(s[i]=='5')ans+=3; else if(s[i]=='6')ans+=4; else if(s[i]=='7')ans+=3; else if(s[i]=='8')ans+=5; else if(s[i]=='9')ans+=4; } Cout(ans-Size(s)+1); return 0; }