while 1:print("".join(sorted(input())[:2:-1]).replace("..",":"))