#include #include #include using namespace std; int main(){ map m; string in, x(8,'x'); int i, j; cin >> in; in = in.substr(2, 9); for (j = 0; j <= 7; j++){ for (i = 0; i <= 9; i++){ x = in.substr(0, j); x += i + '0'; x += in.substr(j, 7 - j); m[x] = true; } } cout << m.size(); return 0; }