#include <bits/stdc++.h>
using namespace std;
int main() {
  long long k;
  cin >> k;
  long long arr[k];
  for (int i = 0; i < k; i++) cin >> arr[i];
  sort(arr, arr + k);
  long long ans = 0;
  long long prev = 25;
  for (int i = 0; i < k; i++) {
    if (arr[i] <= 25) continue;
    if (prev <= 25)
      ans += arr[i] - 25;
    else
      ans += arr[i] - prev;
    prev = arr[i];
  }
  cout << ans << endl;
  return 0;
}
