for i in range(mid): print(arr[i], end=" ")

1 ≤ N ≤ 10⁵