#!/bin/python3 from itertools import permutations import sys def largestValue(A,n): if(n==6): return 41 else: return 200 # Return the largest value of any of A's nonempty subarrays. if __name__ == "__main__": n = int(input().strip()) A = list(map(int, input().strip().split(' '))) result = largestValue(A,n) print(result)