Problem Description

Read three non-negative integers a b c. In one flip you can change one bit of a or b. Compute minimum flips needed so that (a | b) == c.

Input Format

One line: a b c.

Output Format

One integer flips.

Sample Test Case

Input:
2 6 5
Output:
3

Constraints

0

Solutions (0)

No solutions submitted yet. Be the first!

Discussion (0)

No comments yet. Start the discussion!

Prev Next