package test.demo; import java.io.BufferedReader; import java.io.IOException; import java.io.InputStreamReader; import java.util.Date; import java.util.Scanner; public class Yukicoder784 { public static void main(String[] args) { // TODO 自動生成されたメソッド・スタブ /* * Scanner sc=new Scanner(System.in); int N =sc.nextInt(); if(N>999) { String * str=String.valueOf(N); int a=str.length()%3; if(a!=0) { String * str2=str.substring(0,a)+","; for(int i=a;i=str.length()) { str2+=str.substring(i,str.length()); }else { * str2+=str.substring(i,i+3)+","; } } System.out.println(str2); }else { String * str2=""; for(int i=0;i=str.length()) { * str2+=str.substring(i,str.length()); }else { str2+=str.substring(i,i+3)+","; * } } System.out.println(str2); } * * }else { System.out.println(N); } */ Scanner stdin = new Scanner(System.in); //System.out.printf("%1$,-3d%n", stdin.nextInt()); //System.out.printf("%tY/%tm/%td%n",new Date(),new Date(),new Date()); System.out.printf("%,d",stdin.nextInt()); } }