There are two cases :
n is a multiple of 5 , then we print n−5
otherwise , we remove the reminder part (i.e. we go down to nearest multiple of 5) , Formally
n=int(input()) if(n%5==0): print(n-5) else: print(n-n%5)