s = int(input()) if len(str(s)) <= 3: print(s) else: print("{:,}".format(s))