A polyline

题意翻译

题目描述只有那张图——一条折线。 输入两个整数$a,b(1<=a<=10,0<=b<=2^{2\cdot a}-1)$,中间用一个空格分开。 输出两个整数,以空格分开。

题目描述

![](https://cdn.luogu.com.cn/upload/vjudge_pic/CF171H/2780fc6783d25827eba71abf53f5c5996a7b35a6.png)

输入输出格式

输入格式


The input contains two integers $ a,b $ ( $ 1<=a<=10,0<=b<=2^{2·a}-1 $ ) separated by a single space.

输出格式


Output two integers separated by a single space.

输入输出样例

输入样例 #1

1 0

输出样例 #1

0 0

输入样例 #2

2 15

输出样例 #2

3 0

输入样例 #3

4 160

输出样例 #3

12 12