Скрябина Ольга Дмитриевна
13.10.2019 00:06 (13:58)
[2720889]
import copy
a = list(map(int, input().split()))
b = copy.copy(a)
x = 0
for i in range (len(a)):
if (a[i] == 0 and i!=0):
x = x + 1
del b[i-x]
for i in range (len(b)):
print(b[i], end = '' + ' ')