Bitwise Operations on Integers
You are given two integers
a
and b
. Your task is to compute and output their bitwise XOR, AND, and OR operations. Input
The first line contains the integer
a
(0 ≤ a ≤ ).The second line contains the integer
b
(0 ≤ b ≤ ). Output
The program should print 3 numbers: the XOR of the given numbers, followed by the AND, and finally the OR of
a
and b
. Examples
Input | Output |
5
3 | 6 1 7 |
8
2 | 10 0 10 |
Constraints
Time limit: 2 seconds
Memory limit: 512 MB
Output limit: 1 MB