while(0<1)println{val s=readLine ~(2>>(s.tail.toInt-1)/15)+s(0)%7*2}