import strscans let (_, a, b, c, d) = stdin.readAll.scanTuple"$i $i $i $i" x = 31 - a + b echo: if x >= c: 1 elif x >= d: 2 else: 3