a = map(int, input().split())

ok = []
no = []

for x in a:
  (ok if x > 0 else no).append(x)
  
print(ok)
print(no)