#include int main(void) { char st[10001]; int n,m,sa=0,sb=0,ta=0,tb=0,s,i; scanf("%d%d",&n,&m); scanf("%s",st); for(i=0;ita)s=ta; else s=sa; if(sb>tb)s+=tb; else s+=sb; printf("%d",s); return 0; }