#include using i64 = long long; int main() { std::ios::sync_with_stdio(false); std::cin.tie(nullptr); std::string s; std::cin >> s; int ans = 0; for (int mask = 0; mask < (1 << 8); mask++) { bool ok = true; bool alpha = false, num = false, sym = false; for (int i = 0; i < 8; i++) { if (mask >> i & 1) { if (s[i] == 'l') { num = true; } else if (s[i] == 'o') { num = true; } else if (s[i] == 'a') { sym = true; } else if (s[i] == 's') { sym = true; } else { ok = false; } } else { alpha = true; } } if (ok && alpha && num && sym) { ans++; } } std::cout << ans << "\n"; return 0; }