#include #include #include using namespace std; main(){ string S; cin >> S; int num[] = {3,2,2,2,3,2,3,2,4,3}; int count = 0; for(int i = 0;i < S.size();i++){ count += num[S[i]-'0']; } printf("%d\n",count+1); }