Олимпиадный тренинг

Задача 34915. 2^n+2^m


Задача

Темы: Битовые операции

Find the sum of two different powers of 2 using only bitwise operations. In particular, you cannot use the addition operation.

Input: Two unequal numbers are given: n and m, not exceeding 31.
Output: Display the value of the sum 2n+2m.< br />
Examples
# Input Output
1 1 2 6

Запрещенные операторы:+;*;pow;log