#!/bin/python3 import sys n = int(input().strip()) a = list(map(int, input().strip().split(' '))) # your code goes here a.sort() sm=abs(a[0]-a[1]) lg=abs(a[-1]-a[-2]) if sm