title: List index out of bound
body: <p>There is a single unique element in the list.
  There are n similar numbers in the list.</p>
  <p>The list index out of bound appears when i'm trying to run a while loop.
  There is a single unique element in the list.</p>
  <blockquote>
  <p>while (arr[0]==arr[1]):</p>
  <p>IndexError: list index out of range</p>
  </blockquote>
  <pre><code>n=int(input())
  arr=[int(x) for x in input().split()]
  arr.sort()
  while (arr[0]==arr[1]):
      for i in range(n):
          arr.pop(0)
  print(arr[0])
  </code></pre>
  <p>Input
  The first line consists of an integer n, is the size of each group.
  The second line contains the unordered elements of the room number list.</p>
  <p>5</p>
  <p>1 2 3 6 5 4 4 2 5 3 6 1 6 5 3 2 4 1 2 5 1 4 3 6 8 4 3 1 5 6 2</p>
  <p>output</p>
  <p>8</p>