A runway number comes from the heading in degrees divided by ten and rounded. Prefix a leading zero if needed. Use the smaller of the two opposite numbers, except use 18 when the value would be zero. Reduce any value above 18 into the range 1..18. Given a new runway heading h, output its number.
For each test case, print the two-digit runway number on its own line.