Quadratic function#534

Quadratic function

1 second
256 megabytes
Very easy (≈850)

Four integers , , , and are given. Compute the value of the following expression:

A \cdot X^2 + B \cdot X + C

Input

The input consists of four lines, each containing one integer: , , , and ( -100000 \leq A, B, C, X \leq 100000)

Output

Print the computed value of the function.

Examples

Example 1

Loading
Loading