b = list(map(int, sorted(input().split(), reverse=True)))
for i in range(len(b) - 1):
if b[i]-1 != b[i+1]:
print(b[i]-1)
break
Copyright © 2024 SCHOLAR.TIPS - All rights reserved.
Answers & Comments
b = list(map(int, sorted(input().split(), reverse=True)))
for i in range(len(b) - 1):
if b[i]-1 != b[i+1]:
print(b[i]-1)
break