3725573269
#include<iostream>
#include<map>
#include<string>
using namespace std;
int main(){
map<char, int> mp;
string s = "LANQIAO";
long long ans = 0, power = 1;//7位数的26进制可能会超过int范围
for(int i = 1; i <= 26; i++){
mp.insert(make_pair('A' + i - 1, i));
}
for(int i = s.size() - 1; i >= 0; i--){
ans += power * mp[s[i]];
power *= 26;
}
printf("%lld", ans);
return 0;
}