#include using namespace std; typedef long long ll; #define read() freopen("in.txt","r",stdin) #define write() freopen("out.txt","w", stdout) #define arrsize (ll)1e6+1 #define vul() prllf("-1\n"); #define out() cout<>x; #define sdii(x,y) cin>>x>>y; #define YES cout<<"YES\n"; #define NO cout<<"NO\n"; #define newline cout< 0) { if(b%2 == 1) { x=(x*y); if(x>mod) x%=mod; } y = (y*y); if(y>mod) y%=mod; b /= 2; } return x; } ll modInverse(ll a, ll m) { return pow(a,m-2,m); } typedef unsigned long long ull; /// ///////////////////////////////// #define sc(x) scanf("%d",&x) #define scl(x) scanf("%I64d",&x) #define output freopen("out.txt" , "w", stdout) typedef pair pll; #define mp make_pair #define pb push_back int main () { #ifndef ONLINE_JUDGE // read(); // write(); #else // online submission #endif int arr[100]; for ( int i =0; i<26; i++) cin>>arr[i]; int maxi =0, tot =0; string in; cin>>in; for( int i =0; i