Problem2128--Calculate taxi fares

2128: Calculate taxi fares

Time Limit: 1 Sec  Memory Limit: 128 MB
Submit: 68  Solved: 10
[Submit] [Status] [Web Board] [Creator:]

Description

Calculate taxi fare for a passenger based on distance.The gradient charging rules are as follows:mileage<=3km, the fee is $10, 3

Input

Given a positive number k

Output

A positive integer representing the taxi fares

Sample Input Copy

7.5

Sample Output Copy

20

Source/Category

169