Phép tính #4

View as PDF

Points: 100 Time limit: 1.0s Memory limit: 1G Input: stdin Output: stdout

Nhập vào 4 số nguyên \(a, b, c, d\). Tính \(a^b + c^d\)

Input

  • Gồm một dòng duy nhất chứa 4 số nguyên \(a, b, c, d\) \((a^b + c^d \leq 10^9)\), các số phân cách nhau bởi một khoảng trống.

Output

  • In ra kết quả.
Test 1
Input
2 8 6 1
Output
262

Comments

There are no comments at the moment.