program pil_8_14(output);
type 
	month=(jan,feb,mar,apr,may,jun,jul,aug,sep,okt,nov,dec);
var
	KD : array[month] of 28..31;
	m : month;
begin
  for m:=jan to dec do
   begin
     case m of
      jan,mar,may,jul,aug,okt,dec:KD[m]:=31;
      feb:KD[m]:=28;
      apr,jun,sep,nov:KD[m]:=30;
     end;
    write(KD[m],' ')
   end;
  writeln
end.