~/algor $ cat problems/if-taksi-narxi
Taxi fare
Easy
1000 ms
64 MB
22%
A taxi has driven $d$ km. The fare is $6000$ soums for the first $3$ km (even if the ride is shorter than $3$ km) and $2000$ soums for every kilometre after $3$ km. Find the fare in soums.
Input
One positive integer $d$.
Output
One integer — the fare.
Note
$1 \le d \le 1000$
Examples
Input #1
2
Output #1
6000
Input #2
10
Output #2
20000