For this Question: Given N points. You can get 1000 tickets for 500 points or 5 tickets for 5 points. What is the maximum number of tickets you can earn.Input contains a single integer N.

Constraints:
1 <= N <= 10^15Print the maximum number of tickets you can earn using atmax N points.Sample Input
506

Sample Output
1005

Explanation: we use 500 points to get 1000 tickets and 5 out of remaining 6 points to get 5 tickets making total of 1005 tickets.

Sample Input:-
4

Sample Output:-
0, I have written this Solution Code: N=int(input())
A=N//500
B=(N%500)//5
print(A*1000+B*5), In this Programming Language: Python, Now tell me if this Code is compilable or not?