p,q,r=14,d,m;main(n,t){for(scanf("%d",&d);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++,t=n:0,printf("%d %d %d %d\n",~t,p,q,r))n=~getchar();m=!printf("%d",p+d>m?p+d:m);}