print+((1)x$',(1,3,2,4)x6e3)[0..$`-<>=~($,=$")]