PHƯỚC HƯNG OJ · THỬ THÁCH THUẬT TOÁN

#SCKTCUOIKI0003. Tính tiền vé theo độ tuổi (Admission Fee by Age)

Bài tập này chưa được xếp vào lộ trình.

Tính tiền vé theo độ tuổi (Admission Fee by Age)

Admission Fee by Age

**Version: Phuoc Hung OJ Extended

Problem Statement

An amusement park sets admission prices according to a visitor’s age in completed years. Visitors younger than 66 enter for free; visitors aged 66 through 1717 pay 20 00020\,000 VND; visitors aged 1818 or older pay 40 00040\,000 VND. Determine the price for one visitor.

Input

The only line contains the integer tuoituoi, the visitor’s age in completed years.

Output

Print a single integer: the admission fee in VND. Do not print a currency unit or any thousands separator.

Subtasks

  • Subtask 1 (20 points): 0≤tuoi≤50\le tuoi\le5.
  • Subtask 2 (30 points): 0≤tuoi≤170\le tuoi\le17.
  • Subtask 3 (50 points): 0≤tuoi≤1200\le tuoi\le120.

Examples

Input

13

Output

20000

Explanation

The visitor is 1313 years old. This lies in the range from 66 to 1717, so the fee is 20 00020\,000 VND. The required integer output is 20000.