n = int(input())

result = format(n, ',')
print(result)

##재귀함수 사용해서도 풀어보세요!