Tính tiền mua DVD

View as PDF

Submit solution

Points: 0.01
Time limit: 1.0s
Memory limit: 64M
Input: stdin
Output: stdout

Authors:
Problem type

Viết chương trình nhập vào số đĩa DVD là n. Hãy tính số tiền phải trả khi mua đĩa DVD.

Biết rằng mỗi đĩa DVD có giá 5000 VNĐ. Nếu mua hơn 10 cái thì sẽ giảm 10%.

Input

Một dòng duy nhất chứa một số nguyên n

Output

Một dòng duy nhất là số tiền bạn phải trả để mua n đĩa DVD

Examples

Input

8

Output

40000

Input

14

Output

63000

Comments

Please read the guidelines before commenting.


There are no comments at the moment.