num = input()
l =[]

for i in range(num):
   l.append(int(raw_input()))

max = l[1] - l[0]
small = l[0]
for i in range(1, num):
   if small > l[i]:
      small = l[i]
   elif max < l[i] - small:
      max = l[i] - small
print max num = input() num input() input l =[] l [] for i in range(num):
   l.append(int(raw_input())) i range(num) range num l.append(int(raw_input())) l.append l append int(raw_input()) int raw_input() raw_input max = l[1] - l[0] max l[1] - l[0] l[1] l 1 l[0] l 0 small = l[0] small l[0] l 0 for i in range(1, num):
   if small > l[i]:
      small = l[i]
   elif max < l[i] - small:
      max = l[i] - small i range(1, num) range 1 num if small > l[i]:
      small = l[i]
   elif max < l[i] - small:
      max = l[i] - small small > l[i] small l[i] l i small = l[i] small l[i] l i elif max < l[i] - small:
      max = l[i] - small max < l[i] - small max l[i] - small l[i] l i small max = l[i] - small max l[i] - small l[i] l i small print num = input() input() num small = l[0] l[0] small l =[] [] l small = l[i] l[i] small max = l[i] - small l[i] - small max max = l[1] - l[0] l[1] - l[0] max
num = input()
l =[]

for i in range(num):
   l.append(int(raw_input()))

max = l[1] - l[0]
small = l[0]
for i in range(1, num):
   if small > l[i]:
      small = l[i]
   elif max < l[i] - small:
      max = l[i] - small
print max