#include using namespace std; int h1[3],h2[3]; int main(){ cin>>h1[0]>>h1[1]>>h1[2]; string s;cin>>s; for(int i=0,n=s.length();i