#include <bits/stdc++.h>
int main(void) {
  int a, b;
  int max = 0;
  int min = 1000;
  scanf("%d\n", &a);
  for (b = 0; b < a; b++) {
    int c;
    scanf("%d", &c);
    if (c > max) max = c;
    if (c < min) min = c;
  }
  printf("%d/n", max - min);
  return 0;
}
