import java.util.Scanner;

// printf有自动的分割
public class Main {
    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        long num = sc.nextLong();
        System.out.printf("%,d", num);
    }
}