#include <bits/stdc++.h>
using namespace std;
int main() {
  int mm;
  cin >> mm;
  int x, mx = 0;
  while (mm--) {
    scanf("%d", &x);
    mx = max(mx, x);
  }
  printf("%d", max(0, mx - 25));
  return 0;
}
