print$_==1?1:$_==-1?2:-1for<>