#include using namespace std; int a[40]; string s; int main() { for(int i=0; i<26; ++i) cin>>a[i]; cin>>s; int maxi = 0, n = s.size(); for(int i=0; i