KM and M
题号:NC52173
时间限制:C/C++/Rust/Pascal 1秒,其他语言2秒
空间限制:C/C++/Rust/Pascal 32 M,其他语言64 M
64bit IO Format: %lld

题目描述

Find the value of 
,
where & denotes the bitwise AND operator.

输入描述:

The first and only line of input contains two space-separated integers, N, M (1 <= N <= 1018, 1 <= M <= 1011).

输出描述:

Output a single integer, the answer to the problem.
示例1

输入

复制
4 6

输出

复制
12

说明

The sum is 6 + 4 + 2 + 0 = 12.