#include int main(void){ int max , min, n, k, i; int x[10]; max = 0; min = 0; scanf( "%d%d", &n, &k); for ( i=0; i x[i]){ min = x[i]; } } printf ( "%d\n", max - min); return 0; }