<?php fscanf(STDIN, "%d%d", $m, $d); echo [$m, $d] >= [8, 22] ? 24 : 23;