#include <iostream>
#include <vector>
#include <map>
#include <queue>
using namespace std;
#define ll long long
ostream& operator<<(ostream& os, vector<int>& input)
{
for (auto i : input)
{
os << i << " ";
}
return os;
}
int main()
{
cin.tie(nullptr);
cout.tie(nullptr);
ios_base::sync_with_stdio(false);
int n, m = 0, q = 1;
cin >> n;
for (size_t i = 0; i < n; i++)
{
char a;
cin >> a;
if (a == '_') m++;
}
for (size_t i = m; i > 0; i--)
{
q *= 26 - n + i;
}
cout << q << endl;
return 0;
}
/*
5
H O U S _
-22
3
A _ _
-600
*/
Subtask | Sum | Test | Verdict | Time | Memory | ||
---|---|---|---|---|---|---|---|
subtask1 | 0/0 | ||||||
1 | Accepted | 3ms | 1892 KiB | ||||
2 | Accepted | 2ms | 2400 KiB | ||||
subtask2 | 10/10 | ||||||
3 | Accepted | 2ms | 2368 KiB | ||||
4 | Accepted | 2ms | 2528 KiB | ||||
5 | Accepted | 2ms | 2756 KiB | ||||
subtask3 | 20/20 | ||||||
6 | Accepted | 2ms | 2960 KiB | ||||
7 | Accepted | 2ms | 3036 KiB | ||||
8 | Accepted | 2ms | 3048 KiB | ||||
9 | Accepted | 2ms | 3244 KiB | ||||
10 | Accepted | 2ms | 3136 KiB | ||||
11 | Accepted | 2ms | 3136 KiB | ||||
subtask4 | 30/30 | ||||||
12 | Accepted | 2ms | 3100 KiB | ||||
13 | Accepted | 2ms | 3200 KiB | ||||
14 | Accepted | 2ms | 3200 KiB | ||||
15 | Accepted | 2ms | 3424 KiB | ||||
16 | Accepted | 2ms | 3432 KiB | ||||
17 | Accepted | 2ms | 3500 KiB | ||||
subtask5 | 40/40 | ||||||
18 | Accepted | 2ms | 3536 KiB | ||||
19 | Accepted | 2ms | 3612 KiB | ||||
20 | Accepted | 2ms | 3712 KiB | ||||
21 | Accepted | 2ms | 3864 KiB | ||||
22 | Accepted | 2ms | 3976 KiB | ||||
23 | Accepted | 2ms | 4036 KiB | ||||
24 | Accepted | 2ms | 4040 KiB |