10 lines
183 B
Python
10 lines
183 B
Python
n = int(input())
|
|
g_total = 0
|
|
for _ in range(n):
|
|
g, b = map(int, input().split())
|
|
g_total += g
|
|
if b > g_total:
|
|
print("impossible")
|
|
exit()
|
|
print("possible")
|