LearnPy Hub
← Operators problems
Medium

Multiply With Shifts

Read n and k (k ≥ 0). Print n << k (n × 2ᵏ) and n >> k (n // 2ᵏ for n ≥ 0) on one line.

Input

Two integers.

Output

One line.

Sample 1

Input
5
2
Output
20 1

Sample 2

Input
100
3
Output
800 12
solution.py
Output appears here
Multiply With Shifts · Python practice problem · LearnPy Hub