lis = map(int, raw_input().split(',')) for i in sorted(set(lis), reverse=True): print(i)
5,2,5,4,6,0,0,7,8,8,3,5,6,1,4,8,6,9,2,5,3,5,0,3,9,6,2,9,2,1,4,2,7,3,6,8,2,3,1,5,3,8,6,6,5,7,0,3,3,5,6,7,9,0,6,0,1,2,4,0,8,1,5,6,3,0,8,3,5,6,5,2,7,7,1,5,8,4,8,2,5,8,6,7,5,7,2,6,6,6,7,0,8,1,6,2,3,9,2,4