a = input() st = "" for i in a: if i == "0": continue else: st = i + st print(st)
望采纳!谢谢
m = input() print(m[::-1].lstrip("0"))