distance = int(input())
answer = 3000

if distance >= 3 or distance < 5:
    answer += answer * 20 // 100
elif distance >= 5:
    answer += answer * 50 // 100

print(answer)

Embed on website

To embed this project on your website, copy the following code and paste it into your website's HTML: