gets=~/(x)?(\d+)/;p $1?2**32-$2.to_i: $2