import strscans let (_, fst, snd) = stdin.readAll.scanTuple"$w $w" var cnt = 0 if fst in ["Sun","Sat"]: inc cnt if snd in ["Sun","Sat"]: inc cnt echo case cnt: of 0: "8/31" of 1: "8/32" else: "8/33"