a=[int(x) for x in input().split()]
mx=max(a)
for i in range(mx+1):
if i!=mx:
if a.count(i)==0:
print(-1,end=" ")
else:
print(i,end=" ")
else:
if a.count(i)==0:
print(-1,end="")
else:
print(i,end="")