print$/=$",(<>*2-<>)%12