import java.util.Scanner; public class No784 { public static void main(String args[]) { Scanner sc = new Scanner(System.in); int n = sc.nextInt(); // "%,d"は3桁毎に","を入れるの意味 System.out.println(String.format("%,d", n)); } }