Input Format
Integers , and  are given on four separate lines, respectively.

Output Format
Print the result of  on one line.

Hackerrank integers come in all sizes problem solution in python

Problem solution in python 2 programming language.

a = int(raw_input())
b = int(raw_input())
c = int(raw_input())
d = int(raw_input())

print a**b + c**d

Problem solution in python 3 programming language.

a = int(input())
b = int(input())
c = int(input())
d = int(input())

print(a**b + c**d)