list_input = list(map(int, input().split(', ')))
new_list = []
zeroes_counter = 0
for digit in list_input:
    if 0 in list_input:
        list_input.remove(0)
        zeroes_counter += 1
for i in range(zeroes_counter):
    list_input.append(0)
print(list_input)

4cc113175a88c2c434152ed36df338a1e45b8ed3
<mask token>

<mask token>
for digit in list_input:
    if 0 in list_input:
        list_input.remove(0)
        zeroes_counter += 1
for i in range(zeroes_counter):
    list_input.append(0)
print(list_input)

list_input = list(map(int, input().split(', ')))
new_list = []
zeroes_counter = 0
for digit in list_input:
    if 0 in list_input:
        list_input.remove(0)
        zeroes_counter += 1
for i in range(zeroes_counter):
    list_input.append(0)
print(list_input)
