p,q,r=14,d,m;main(t,n){for(scanf("%d",&d);t=n+11?n:t;n+11?n+112?t>n|!n?m=r>d?d+q>m?d+q:m:m>(p+=q+r)?m:p,p=q,q=0,r=1:r++:q++:0)n=~getchar();m=!printf("%d",p+d>m?p+d:m);}