CodechefJul 26, 2025

2000

Hazrat Ali

Codechef

Chef wants to pay the same amount using Rs. 500 notes only. Find the number of notes Chef needs.

Input Format

Each test case consists of a single integer N - the number of notes of Rs. 2000 that Chef has collected.

Output Format

Output a single integer - the number of Rs. 500 notes needed.

Constraints

  • 1≤N≤100

Sample 1:

Input
4
Output
 
16

Solution

N = int(input())

total = N * 2000
notes_500 = total // 500
print(notes_500)



Comments