output_description: Print `GREATER` if A>B, `LESS` if A<B and `EQUAL` if A=B.
  
  * * *
input_description: Input is given from Standard Input in the following format:
  
      
      
      A
      B
attempt: n = int(input())
  a = [int(i) for i in input().split()]
  s0 = a[0]
  count = 0
  if a[0] == 0:
      s0 += 1
      count += 1
  for i in range(1, n):
      s1 = s0 + a[i]
      if s0 * s1 >= 0:
          if s1 > 0:
              a[i] -= abs(s1) + 1
              count += abs(s1) + 1
          elif s1 < 0:
              a[i] += abs(s1) + 1
              count += abs(s1) + 1
          elif s1 == 0:
              if s0 > 0:
                  a[i] -= 1
                  count += 1
              elif s0 < 0:
                  a[i] += 1
                  count += 1
              else:
                  break
      s0 += a[i]
  print(count)
  
problem_description: Statement
  
  You are given two positive integers A and B. Compare the magnitudes of these
  numbers.
samples: [{"input": "36\n    24", "output": "GREATER\n    \n\nSince 36>24, print `GREATER`.\n\n* * *"}, {"input": "850\n    3777", "output": "LESS\n    \n\n* * *"}, {"input": "9720246\n    22516266", "output": "LESS\n    \n\n* * *"}, {"input": "123456789012345678901234567890\n    234567890123456789012345678901", "output": "LESS"}]