eolymp
bolt
Try our new interface for solving problems
Problems

The sum of powers of two

The sum of powers of two

Given two not negative integers n, m < 30, n and m are different.

Find the value of the sum 2n + 2m using only bit operations.

Input

Two nonnegative integers n and m.

Output

Print the value of the sum 2n + 2m.

Time limit 1 second
Memory limit 64 MiB
Input example #1
1 2
Output example #1
6