Tìm tổng S

View as PDF

Submit solution

Points: 0.10
Time limit: 0.1s
Memory limit: 64M
Input: stdin
Output: stdout

Author:
Problem type

Giới thiệu: Đây là đề Training Python 2

Viết chương trình tìm ~S~ biết:

~S = x + \frac{x^2}{2!} + \frac{x^3}{3!}+ ... + \frac{x^n}{n!}~

Input

2 dòng: lần lượt là ~x~ và ~n~

Output

Giá trị ~S~ mà bạn tính được làm tròn tới chữ số thập phân thứ ~2~

Examples

Input

2 
2

Output

4.00

Comments

Please read the guidelines before commenting.


There are no comments at the moment.