#coding utf-8 #https://yukicoder.me/problems/no/671 #No.671 1000000007 array = str(input()) for i in range(len(array)): count = int(i + 1) if count > 10: print(count - 10) elif count < 10: print(10 - count)