#include using namespace std; typedef long long ll; int main() { ios::sync_with_stdio(false); cin.tie(NULL); int ar[26]; string s; for(int i=0; i<26; i++) cin>>ar[i]; cin>>s; int maxl=0; for(unsigned int i=0; i