object Main{ def main($:Array[String]){ val s=new java.util.Scanner(System.in) println(s.nextInt.formatted("%,3d")) } }