#include using namespace std; #define F first #define S second #define pb push_back #define mp make_pair #define var(X) cerr << " --> " << #X << " = " << X << endl #define arr(a,n) for(int i=0;i vi; typedef pair ii; typedef vector > vii; const double eps = 1e-10, pi = acos(-1.0); int h[30]; int main() { /* #ifndef ONLINE_JUDGE freopen("input.txt","r",stdin); freopen("out.txt","w",stdout); #endif */ int t=1; //scanf("%d",&t); while(t--) { int n,x=0,y; for(int i=0;i<26;i++) cin>>h[i]; string str; cin>>str; for(int i=0;i