#include #include using namespace std; int main() { int i,a[26],j,r=0; string s; for(i=0;i<26;i++) cin>>a[i]; cin>>s; for(j=0;j