$_=<>;print$_&1?$_:$_/2