1085: 计算多项式的值

Memory Limit:128 MB Time Limit:1.000 S
Judge Style:Text Compare Creator:
Submit:30 Solved:9

Description

对于多项式f(x)=bx^2+cx+d和给定的b,c,d,x计算f(x)的值。其中b,c,d,x为一位小数或整数

Input

输入为一行,有空格隔开,顺序为b,c,d,x

Output

输出f(x)值

Sample Input Copy

2 3 4 5

Sample Output Copy

69