#P171H. A polyline

A polyline

Description

The input contains two integers a, b (1 ≤ a ≤ 10, 0 ≤ b ≤ 2a - 1) separated by a single space.

Output two integers separated by a single space.

Input

The input contains two integers a, b (1 ≤ a ≤ 10, 0 ≤ b ≤ 2a - 1) separated by a single space.

Output

Output two integers separated by a single space.

1 0<br>
2 15<br>
4 160<br>
0 0<br>
3 0<br>
12 12<br>