Preparando MOJI

A polyline

2000ms 262144K

Description:

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.

Sample Input:

1 0

Sample Output:

0 0

Sample Input:

2 15

Sample Output:

3 0

Sample Input:

4 160

Sample Output:

12 12

Informação

Codeforces

Provedor Codeforces

Código CF171H

Tags

*specialimplementation

Submetido 0

BOUA! 0

Taxa de BOUA's 0%

Datas 09/05/2023 08:35:50

Relacionados

Nada ainda