#C4066. XP Level-Up Calculator

    ID: 47563 Type: Default 1000ms 256MiB

XP Level-Up Calculator

XP Level-Up Calculator

In many game systems, a player must accumulate a certain amount of experience points (XP) to progress to the next level. In this problem, you are given the current level of the player, and you need to calculate the XP required to level up to the next level. The XP is determined by the following piecewise function:

  • For levels (1 \leq L \leq 4): (XP = L \times 1000).
  • For levels (5 \leq L \leq 9): (XP = L \times 1500 + 5000).
  • For levels (L \geq 10): (XP = L \times 2000 + 10000).

Your task is to implement a program that reads an integer (L) from standard input and prints the required XP to standard output.

inputFormat

The input consists of a single line containing one integer (L) (where (L \geq 1)), representing the current level of the player.

outputFormat

Output a single integer representing the XP required to level up from the given current level.## sample

1
1000