```python
n = int(input())
pre_sick, pre_health = map(int, input().split())
x = pre_health / pre_sick
for i in range(n - 1):
new_sick, new_health = map(int, input().split())
y = new_health / new_sick
if x - y > 0.05:
print('worse')
elif y - x > 0.05:
print('better')
else:
print('same')
```
by tiansuohaoer114514 @ 2023-11-25 23:03:53