#include using namespace std; long nr; int total, v[12], cif; int main() { cin>>nr; while(nr>10) { cif=nr%10; v[cif]++; nr/=10; } for(int i=0; i<=9; ++i) { total+=8-v[i]; } cout<