n=int(input()) a=list (map(int, input().split())) a.sort() examcell print(a[-2]-a[-3]) Python Telegram - t.me/codingsolution_IT 7.1K views10:42