Buggy python submission (verdict: Runtime Error):
n = int(raw_input())
maxv = int(raw_input())
minv = int(raw_input())
maxv = -10**9

for j in range(0,n-1):
   nums = int(raw_input())
   deff = nums - minv
   if maxv < deff:
     maxv = deff
   if minv > nums:
     minv = nums
print maxv

Fixed submission:
n = int(raw_input())
minv = int(raw_input())
maxv = -1*10**9
  
for j in range(n-1):
  nums = int(raw_input())  
  diff = nums - minv
  if maxv < diff:
    maxv = diff
  if nums < minv:
    minv = nums
  
print maxv

Buggy python submission (verdict: Runtime Error):
n = int(raw_input())
maxv = int(raw_input())
minv = int(raw_input())
maxv = -10**9

 for j in range(0,n-1):
   nums = int(raw_input())
   diff = nums - minv
   maxv = max(maxv,diff)
   minv = min(minv,nums)
 print maxv

Fixed submission:
n = int(raw_input())
minv = int(raw_input())
maxv = -1*10**9
  
for j in range(n-1):
  nums = int(raw_input())  
  diff = nums - minv
  if maxv < diff:
    maxv = diff
  if nums < minv:
    minv = nums
  
print maxv

Buggy python submission (verdict: Runtime Error):
n = int(raw_input())
minv = int(raw_input())
maxv = -10**9

 for j in range(0,n-1):
   nums = int(raw_input())
   diff = nums - minv
   maxv = max(maxv,diff)
   minv = min(minv,nums)
 print maxv

Fixed submission:
n = int(raw_input())
minv = int(raw_input())
maxv = -1*10**9
  
for j in range(n-1):
  nums = int(raw_input())  
  diff = nums - minv
  if maxv < diff:
    maxv = diff
  if nums < minv:
    minv = nums
  
print maxv

Buggy python submission (verdict: Runtime Error):
 n = int(raw_input())
 maxv = -10**9
 minv = 10**9

 for j in range(0,n-1):
   nums = int(raw_input())
   diff = nums - minv
   maxv = max(maxv,diff)
   minv = min(minv,nums)
 print maxv

Fixed submission:
n = int(raw_input())
minv = int(raw_input())
maxv = -1*10**9
  
for j in range(n-1):
  nums = int(raw_input())  
  diff = nums - minv
  if maxv < diff:
    maxv = diff
  if nums < minv:
    minv = nums
  
print maxv

Buggy python submission (verdict: Runtime Error):
 n = int(raw_input())
 maxv = -10**9
 minv = 10**9

 for j in range(n-1):
   nums = int(raw_input())
   diff = nums - minv
   maxv = max(maxv,diff)
   minv = min(minv,nums)
 print maxv

Fixed submission:
n = int(raw_input())
minv = int(raw_input())
maxv = -1*10**9
  
for j in range(n-1):
  nums = int(raw_input())  
  diff = nums - minv
  if maxv < diff:
    maxv = diff
  if nums < minv:
    minv = nums
  
print maxv

Buggy python submission (verdict: Runtime Error):
 n = int(raw_input())
 maxv = -10**9
 minv = 10**9

 for j in range(n-1):
   nums = int(raw_input())
   diff = nums - minv
   maxv = max(maxv,diff)
   minv = min(minv,nums)
 print maxv

Fixed submission:
n = int(raw_input())
minv = int(raw_input())
maxv = -1*10**9
  
for j in range(n-1):
  nums = int(raw_input())  
  diff = nums - minv
  if maxv < diff:
    maxv = diff
  if nums < minv:
    minv = nums
  
print maxv

Buggy python submission (verdict: Runtime Error):
 n = int(raw_input())
 maxv = -10**9
 minv = 10**9

 for j in range(n-1):
   nums = int(raw_input())
   diff = nums - minv
   maxv = max(maxv,diff)
   minv = min(minv,nums)
 print maxv

Fixed submission:
n = int(raw_input())
minv = int(raw_input())
maxv = -1*10**9
  
for j in range(n-1):
  nums = int(raw_input())  
  diff = nums - minv
  if maxv < diff:
    maxv = diff
  if nums < minv:
    minv = nums
  
print maxv

Buggy python submission (verdict: Runtime Error):
 n = int(raw_input())
 maxv = -1*10**9
 minv = 10**9

 for j in range(n-1):
   num = int(raw_input())
   diff = num - minv
   maxv = max(maxv,diff)
   minv = min(minv,num)
 print maxv

Fixed submission:
n = int(raw_input())
minv = int(raw_input())
maxv = -1*10**9
  
for j in range(n-1):
  nums = int(raw_input())  
  diff = nums - minv
  if maxv < diff:
    maxv = diff
  if nums < minv:
    minv = nums
  
print maxv

Buggy python submission (verdict: Runtime Error):
 n = int(raw_input())
 maxv = -1*10**9
 minv = int(raw_input())

 for j in range(n-1):
   num = int(raw_input())
   diff = num - minv
   maxv = max(maxv,diff)
   minv = min(minv,num)
 print maxv

Fixed submission:
n = int(raw_input())
minv = int(raw_input())
maxv = -1*10**9
  
for j in range(n-1):
  nums = int(raw_input())  
  diff = nums - minv
  if maxv < diff:
    maxv = diff
  if nums < minv:
    minv = nums
  
print maxv

Buggy python submission (verdict: Runtime Error):
 n = int(raw_input())
 maxv = -1*10**9
 minv = int(raw_input())

 for j in range(n-1):
   num = int(raw_input())
   maxv = max(maxv,num - minv)
   minv = min(minv,num)
 print maxv

Fixed submission:
n = int(raw_input())
minv = int(raw_input())
maxv = -1*10**9
  
for j in range(n-1):
  nums = int(raw_input())  
  diff = nums - minv
  if maxv < diff:
    maxv = diff
  if nums < minv:
    minv = nums
  
print maxv

Buggy python submission (verdict: Runtime Error):
 n = int(raw_input())
 maxv = -1*10**9
 minv = int(raw_input())

 for j in range(n-1):
   num = int(raw_input())
   maxv = max(maxv, num - minv)
   minv = min(minv, num)


 print maxv

Fixed submission:
n = int(raw_input())
minv = int(raw_input())
maxv = -1*10**9
  
for j in range(n-1):
  nums = int(raw_input())  
  diff = nums - minv
  if maxv < diff:
    maxv = diff
  if nums < minv:
    minv = nums
  
print maxv

Buggy python submission (verdict: Runtime Error):
  n = int(raw_input())
  maxv = -1*10**9
  minv = int(raw_input())

  for j in range(n-1):
    num = int(raw_input())
    maxv = max(maxv, num - minv)
    minv = min(minv, num)

  print maxv

Fixed submission:
n = int(raw_input())
minv = int(raw_input())
maxv = -1*10**9
  
for j in range(n-1):
  nums = int(raw_input())  
  diff = nums - minv
  if maxv < diff:
    maxv = diff
  if nums < minv:
    minv = nums
  
print maxv

Buggy python submission (verdict: Runtime Error):
  n = int(raw_input())
  maxv = -1*10**9
  minv = 10**9

  for j in range(n-1):
    num = int(raw_input())
    maxv = max(maxv, num - minv)
    minv = min(minv, num)

  print maxv

Fixed submission:
n = int(raw_input())
minv = int(raw_input())
maxv = -1*10**9
  
for j in range(n-1):
  nums = int(raw_input())  
  diff = nums - minv
  if maxv < diff:
    maxv = diff
  if nums < minv:
    minv = nums
  
print maxv

Buggy python submission (verdict: Runtime Error):
  n = int(raw_input())
  maxv = -1*10**9
  minv = 10**9

  for i in range(n-1):
    num = int(raw_input())
    maxv = max(maxv, num - minv)
    minv = min(minv, num)

  print maxv

Fixed submission:
n = int(raw_input())
minv = int(raw_input())
maxv = -1*10**9
  
for j in range(n-1):
  nums = int(raw_input())  
  diff = nums - minv
  if maxv < diff:
    maxv = diff
  if nums < minv:
    minv = nums
  
print maxv

Buggy python submission (verdict: Runtime Error):
  n = int(raw_input())
  maxv = -1*10**9
  minv = 10**9

  for j in range(n-1):
    num = int(raw_input())
    if maxv < num - minv:
      maxv = num -minv
    if minv > num:
      minv = num

  print maxv

Fixed submission:
n = int(raw_input())
minv = int(raw_input())
maxv = -1*10**9
  
for j in range(n-1):
  nums = int(raw_input())  
  diff = nums - minv
  if maxv < diff:
    maxv = diff
  if nums < minv:
    minv = nums
  
print maxv

Buggy python submission (verdict: Runtime Error):
  n = int(raw_input())
  maxv = -1*10**9
  minv = 10**9

  for j in range(n-1):
    num = int(raw_input())
    if maxv < num - minv:
      maxv = num -minv
    if minv > num:
      minv = num

  print maxv

Fixed submission:
n = int(raw_input())
minv = int(raw_input())
maxv = -1*10**9
  
for j in range(n-1):
  nums = int(raw_input())  
  diff = nums - minv
  if maxv < diff:
    maxv = diff
  if nums < minv:
    minv = nums
  
print maxv

Buggy python submission (verdict: Runtime Error):
  n = int(raw_input())
  maxv = -1*10**9
  minv = 10**9

  for j in range(n-1):
    num = int(raw_input())
    if maxv < num - minv:
      maxv = num -minv
    if minv > num:
      minv = num

  print maxv

Fixed submission:
n = int(raw_input())
minv = int(raw_input())
maxv = -1*10**9
  
for j in range(n-1):
  nums = int(raw_input())  
  diff = nums - minv
  if maxv < diff:
    maxv = diff
  if nums < minv:
    minv = nums
  
print maxv

Buggy python submission (verdict: Runtime Error):
  n = input()
  maxv = -1*10**9
  minv = 10**9

  for j in range(n-1):
    num = input()
    if maxv < num - minv:
      maxv = num -minv
    if minv > num:
      minv = num

  print maxv

Fixed submission:
n = int(raw_input())
minv = int(raw_input())
maxv = -1*10**9
  
for j in range(n-1):
  nums = int(raw_input())  
  diff = nums - minv
  if maxv < diff:
    maxv = diff
  if nums < minv:
    minv = nums
  
print maxv

Buggy python submission (verdict: Runtime Error):
  n = input()
  maxv = -1*10**9
  minv = input()

  for j in range(n-1):
    num = input()
    if maxv < num - minv:
      maxv = num - minv
    if minv > num:
      minv = num

  print maxv

Fixed submission:
n = int(raw_input())
minv = int(raw_input())
maxv = -1*10**9
  
for j in range(n-1):
  nums = int(raw_input())  
  diff = nums - minv
  if maxv < diff:
    maxv = diff
  if nums < minv:
    minv = nums
  
print maxv

Buggy python submission (verdict: Runtime Error):
  n = input()
  maxv = -1*10**9
  minv = 10**9

  for j in range(0, n-1):
    num = input()
    if maxv < num - minv:
      maxv = num -minv
    if minv > num:
      minv = num

  print maxv

Fixed submission:
n = int(raw_input())
minv = int(raw_input())
maxv = -1*10**9
  
for j in range(n-1):
  nums = int(raw_input())  
  diff = nums - minv
  if maxv < diff:
    maxv = diff
  if nums < minv:
    minv = nums
  
print maxv

Buggy python submission (verdict: Runtime Error):
  n = input()
  maxv = -1*10**9
  minv = input()

  for j in range(0, n-1):
    nums = input()
    if maxv < nums - minv:
      maxv = nums - minv
    if nums < minv:
      minv = nums

  print maxv

Fixed submission:
n = int(raw_input())
minv = int(raw_input())
maxv = -1*10**9
  
for j in range(n-1):
  nums = int(raw_input())  
  diff = nums - minv
  if maxv < diff:
    maxv = diff
  if nums < minv:
    minv = nums
  
print maxv

Buggy python submission (verdict: Runtime Error):
  n = input()
  max = -1*10**9
  min = input()

  for i in range(0, n-1):
    a = input()
    if max < a - min:
      max = a - min
    if a < min:
      min = a

  print max

Fixed submission:
n = int(raw_input())
minv = int(raw_input())
maxv = -1*10**9
  
for j in range(n-1):
  nums = int(raw_input())  
  diff = nums - minv
  if maxv < diff:
    maxv = diff
  if nums < minv:
    minv = nums
  
print maxv

Buggy python submission (verdict: Runtime Error):
  n = input()
  max = -(10**9)
  min = input()

  for i in range(0, n-1):
    a = input()
    if max < a - min:
      max = a - min
    if a < min:
      min = a

  print max

Fixed submission:
n = int(raw_input())
minv = int(raw_input())
maxv = -1*10**9
  
for j in range(n-1):
  nums = int(raw_input())  
  diff = nums - minv
  if maxv < diff:
    maxv = diff
  if nums < minv:
    minv = nums
  
print maxv

Buggy python submission (verdict: Runtime Error):
  n = input()
  max = -(10**9)
  min = input()

  for i in range(0, n-1):
    a = input()
    if max < a - min:
      max = a - min
    if a < min
      min = a

  print max

Fixed submission:
n = int(raw_input())
minv = int(raw_input())
maxv = -1*10**9
  
for j in range(n-1):
  nums = int(raw_input())  
  diff = nums - minv
  if maxv < diff:
    maxv = diff
  if nums < minv:
    minv = nums
  
print maxv

Buggy python submission (verdict: Runtime Error):
  n = input()
  n_max = -(10**9)
  n_min = input()

  for i in range(0, n-1):
    R = input()
    if n_max < R - n_min:
      n_max = R - n_min
    if R < n_min
      n_min = R

  print n_max

Fixed submission:
n = int(raw_input())
minv = int(raw_input())
maxv = -1*10**9
  
for j in range(n-1):
  nums = int(raw_input())  
  diff = nums - minv
  if maxv < diff:
    maxv = diff
  if nums < minv:
    minv = nums
  
print maxv

Buggy python submission (verdict: Runtime Error):
  n = input()
  n_max = -(10**9)
  n_min = input()

  for i in range(0, n-1):
   R = input()
   if n_max < R - n_min:
    n_max = R - n_min
   if R < n_min:
    n_min = R

  print n_max

Fixed submission:
n = int(raw_input())
minv = int(raw_input())
maxv = -1*10**9
  
for j in range(n-1):
  nums = int(raw_input())  
  diff = nums - minv
  if maxv < diff:
    maxv = diff
  if nums < minv:
    minv = nums
  
print maxv

Buggy python submission (verdict: Runtime Error):
  n = input()
  n_max = -1000000000
  n_min = input()

  for i in range(0, n-1):
   R = input()
   if n_max < R - n_min:
    n_max = R - n_min
   if R < n_min:
    n_min = R

  print n_max

Fixed submission:
n = int(raw_input())
minv = int(raw_input())
maxv = -1*10**9
  
for j in range(n-1):
  nums = int(raw_input())  
  diff = nums - minv
  if maxv < diff:
    maxv = diff
  if nums < minv:
    minv = nums
  
print maxv

Buggy python submission (verdict: Runtime Error):
  n = input()
  n_max = -(1000000000)
  n_min = input()

  for i in range(0, n-1):
   R = input()
   if n_max < R - n_min:
    n_max = R - n_min
   if R < n_min:
    n_min = R

  print n_max

Fixed submission:
n = int(raw_input())
minv = int(raw_input())
maxv = -1*10**9
  
for j in range(n-1):
  nums = int(raw_input())  
  diff = nums - minv
  if maxv < diff:
    maxv = diff
  if nums < minv:
    minv = nums
  
print maxv

Buggy python submission (verdict: Runtime Error):
n = int(raw_input())
minv = int(raw_input())
maxv = -1*10**9
  
for j in range(n-1):
  nums = int(raw_input())  
  diff = nums - minv
  if maxv < diff:
    maxv = diff
  if num < minv:
    minv = nums
  
print maxv

Fixed submission:
n = int(raw_input())
minv = int(raw_input())
maxv = -1*10**9
  
for j in range(n-1):
  nums = int(raw_input())  
  diff = nums - minv
  if maxv < diff:
    maxv = diff
  if nums < minv:
    minv = nums
  
print maxv