comma format

Submit

Your name:
File:
Open code-statistics:

Language is selected by the extension of the file. See the list of supported languages to know the extension of your language.

Problem

Insert a comma between triplets of digits left of the decimal.

Options

exec is denied

now post-mortem time, all source codes will be revealed

Sample input:_

12345

Sample output:

12,345

Sample input:_

1
12
123
1234
12345
123456

Sample output:

1
12
123
1,234
12,345
123,456

Sample input:_

164
917246385
13642598
9
574
469178532
2367419
769
1
7348
5
35
598
862594371
64932518
432816957
7952164
7253
342
43897265
159634782
873
3
64
92
2415978
732654
67412
34862719
32754986
385469721
2
58
6274358
547831962
4
32751
29
945867
37695
65314
596723
7865
958
371548692
3549
324
586
6
9621354
4578391
1527936
3
947136
5612347
7829
4
5376892
9612
42615
32648159
8
69483521
574691
4816295
2846
43
963527
32
539128746
21783
7294635
691
3518679
276
14786352
86147539
65
459
7
475138
513947268
41237956
53
4216938
4157362
7
5179
839627451
28635
367259
23
243718
348261795
871
786342
8174
2387149
27
72981

Sample output:

164
917,246,385
13,642,598
9
574
469,178,532
2,367,419
769
1
7,348
5
35
598
862,594,371
64,932,518
432,816,957
7,952,164
7,253
342
43,897,265
159,634,782
873
3
64
92
2,415,978
732,654
67,412
34,862,719
32,754,986
385,469,721
2
58
6,274,358
547,831,962
4
32,751
29
945,867
37,695
65,314
596,723
7,865
958
371,548,692
3,549
324
586
6
9,621,354
4,578,391
1,527,936
3
947,136
5,612,347
7,829
4
5,376,892
9,612
42,615
32,648,159
8
69,483,521
574,691
4,816,295
2,846
43
963,527
32
539,128,746
21,783
7,294,635
691
3,518,679
276
14,786,352
86,147,539
65
459
7
475,138
513,947,268
41,237,956
53
4,216,938
4,157,362
7
5,179
839,627,451
28,635
367,259
23
243,718
348,261,795
871
786,342
8,174
2,387,149
27
72,981

Ranking

Ruby _

RankUserSizeTimeDateStatistics
1leonid310.00642010/10/01 13:07:520B / 9B / 20B
2yvl310.00712010/10/01 19:44:530B / 9B / 20B
3yibe340.01012010/10/01 10:41:450B / 10B / 21B
4eban340.00632010/10/06 21:50:540B / 10B / 21B
5hide24350.00792010/10/05 17:16:120B / 10B / 22B
6samuil580.01032010/10/01 19:22:460B / 33B / 24B

Perl _

RankUserSizeTimeDateStatistics
1tybalt89290.00312010/10/01 04:24:160B / ?B / ?B
2sambowry290.00312010/10/01 08:11:560B / ?B / ?B
3yibe290.00312010/10/01 10:41:180B / 8B / 19B
4leonid290.00322010/10/01 14:33:010B / 8B / 19B
5eban290.00322010/10/06 21:52:550B / 8B / 19B
6MG300.00352010/10/02 07:27:270B / 7B / 21B
7dcutter300.00362010/10/04 18:56:390B / 7B / 21B

Python _

RankUserSizeTimeDateStatistics
1xulapp630.08452010/10/03 01:04:000B / 33B / 26B
2leonid630.08752010/10/03 06:54:350B / 33B / 26B
3hallvabo660.07982010/10/03 02:23:190B / 35B / 25B
4hallvabo (recursion)680.13612010/10/03 03:17:570B / 35B / 27B
5zombie770.16962010/10/08 01:21:541B / 39B / 34B
6croyal1100.06692010/10/01 23:12:210B / ?B / ?B
7leonid330.08752015/08/18 09:32:420B / ?B / ?B
8hallvabo (xulapp)610.08652010/10/08 06:21:160B / 30B / 27B

Python3 _

RankUserSizeTimeDateStatistics
1pooq400.19482013/03/07 05:42:560B / 26B / 13B

PHP _

RankUserSizeTimeDateStatistics
1o-cn470.08872010/10/01 07:08:371B / 29B / 17B
2xulapp470.09262010/10/02 11:50:181B / 29B / 17B

Scheme _

RankUserSizeTimeDateStatistics
1xulapp300.09712010/10/02 20:41:220B / 17B / 11B
2mht360.28522010/10/03 15:51:121B / ?B / ?B

Common LISP _

RankUserSizeTimeDateStatistics
1kozima280.54722010/10/01 08:37:310B / 16B / 10B
2xulapp280.18952010/10/02 20:24:480B / 16B / 10B

Arc _

RankUserSizeTimeDateStatistics
1pooq206.39212010/10/02 04:34:500B / ?B / ?B

Clojure _

RankUserSizeTimeDateStatistics
1pooq304.85982012/03/17 17:30:100B / 18B / 11B
2uochan1675.41322010/11/25 21:31:590B / ?B / ?B

LilyPond _

RankUserSizeTimeDateStatistics
1KirarinSnow314.01392010/10/03 02:52:230B / 17B / 12B

Io _

RankUserSizeTimeDateStatistics
1pooq1020.22362012/11/19 21:01:150B / 72B / 23B

JavaScript _

RankUserSizeTimeDateStatistics
1xulapp470.00832010/10/02 11:38:260B / 21B / 26B
2nn470.00802010/10/04 13:25:480B / 21B / 26B
3ETHproductions470.06992016/04/13 10:26:180B / 21B / 26B

Prolog _

RankUserSizeTimeDateStatistics
1pooq510.31972010/10/01 21:26:500B / 26B / 24B
2pooq330.15792012/03/05 10:31:150B / 17B / 15B

BASIC _

RankUserSizeTimeDateStatistics
1Carlos Gutierrez490.01272010/10/06 09:40:040B / 22B / 25B
2pooq510.04162010/10/01 16:54:150B / 23B / 25B

J _

RankUserSizeTimeDateStatistics
1pooq270.09112010/10/01 09:33:010B / 10B / 17B
2I., S.(pooq)250.11782011/07/15 22:39:330B / 9B / 16B

C _

RankUserSizeTimeDateStatistics
1nn690.00242010/10/04 12:49:010B / 41B / 28B
2inaniwa690.00202010/10/04 13:04:410B / 41B / 28B
3yuyarin740.03442010/10/04 00:02:340B / 42B / 32B
4not850.00182010/10/02 07:33:270B / 46B / 39B
5kou990.00172010/10/07 15:29:040B / 55B / 44B
6croyal7860.00212010/10/06 23:27:180B / ?B / ?B

C++ _

RankUserSizeTimeDateStatistics
1inaniwa1100.01242010/10/05 12:05:020B / 70B / 38B
2yuyarin1320.06012010/10/04 06:04:420B / 92B / 32B
3cgy4ever3560.00292010/10/04 03:57:1119B / 133B / 67B

OCaml _

RankUserSizeTimeDateStatistics
1ksk910.13822010/10/06 22:15:270B / 47B / 38B
2m.ukai940.11882010/10/07 13:16:550B / 59B / 28B

Haskell _

RankUserSizeTimeDateStatistics
1moriA710.00312010/10/05 01:15:030B / 42B / 27B
2notogawa710.00312010/10/05 01:37:160B / 41B / 28B

Java _

RankUserSizeTimeDateStatistics
1hallvabo1130.58072010/10/01 08:47:460B / 76B / 33B

Pascal _

RankUserSizeTimeDateStatistics
1*yuko*1250.00292010/10/04 08:05:240B / 82B / 35B
2*yuko*1240.00272010/10/13 23:21:210B / 82B / 34B

Fortran _

RankUserSizeTimeDateStatistics
1*yuko*960.00252010/10/06 14:14:360B / 58B / 37B
2*yuko*940.03992011/11/25 06:36:360B / 56B / 37B

Maxima _

RankUserSizeTimeDateStatistics
1pooq491.14012010/10/01 06:57:480B / 23B / 23B
2pooq430.61692010/12/12 11:19:240B / 19B / 23B

AWK _

RankUserSizeTimeDateStatistics
1nn420.03962012/11/20 22:14:010B / 11B / 31B

sed _

RankUserSizeTimeDateStatistics
1narb170.00242010/10/05 07:20:070B / 6B / 11B
2leonid170.00262010/10/05 16:20:490B / 3B / 14B
3eban170.00252010/10/06 21:46:530B / 3B / 12B
4yibe180.00232010/10/06 00:24:570B / 5B / 11B
5KirarinSnow360.00312010/10/01 04:25:170B / 4B / 30B

Bash (builtins) _

RankUserSizeTimeDateStatistics
1tails410.02772016/05/11 13:28:590B / 21B / 16B
2tails (teebee)410.02152016/05/11 13:29:280B / 21B / 16B
3teebee(tails)430.02192016/04/12 06:35:480B / 24B / 16B

wake _

RankUserSizeTimeDateStatistics
1eban350.03082010/10/05 11:20:490B / 6B / 27B

dc _

RankUserSizeTimeDateStatistics
1tails380.03292016/04/12 15:53:380B / 28B / 10B

xgawk _

RankUserSizeTimeDateStatistics
1eban300.07322010/10/06 22:03:160B / 8B / 22B

R _

RankUserSizeTimeDateStatistics
1pooq890.59622012/12/22 12:36:480B / 47B / 40B

GolfScript _

RankUserSizeTimeDateStatistics
1narb160.15722010/10/01 16:29:430B / ?B / ?B
2leonid160.15482010/10/01 17:11:230B / 4B / 12B
3nn160.16462010/10/02 22:12:450B / 4B / 12B
4doug180.15332010/10/01 14:15:420B / 5B / 13B

gs2 _

RankUserSizeTimeDateStatistics
1mitchs70.26252015/04/23 10:42:171B / 3B / 1B

FlogScript _

RankUserSizeTimeDateStatistics
1milieu130.30362010/10/01 07:15:200B / ?B / ?B
2milieu120.30292010/12/15 12:55:270B / ?B / ?B

Burlesque _

RankUserSizeTimeDateStatistics
1mroman (teebee)150.04852015/06/06 19:29:460B / 7B / 8B
2teebee170.04812014/05/01 23:36:020B / 7B / 10B
3Hendrik200.04082014/05/01 22:03:030B / 7B / 13B

z80 _

RankUserSizeTimeDateStatistics
1kodera280.81292010/10/02 02:01:0117B / 3B / 4B
2*yuko*300.73312010/10/01 19:53:4020B / 4B / 3B
3*yuko*250.86362010/10/13 19:18:2015B / 4B / 2B

Vim _

RankUserSizeTimeDateStatistics
1nn250.09192010/10/04 10:12:060B / 7B / 17B
2doug270.58882010/10/01 11:07:371B / 12B / 13B

Groovy _

RankUserSizeTimeDateStatistics
1nn535.88272010/10/04 13:51:120B / 25B / 28B
2teebee433.97262012/03/17 18:11:120B / 31B / 10B

Scala _

RankUserSizeTimeDateStatistics
1pooq338.93992011/02/09 21:26:000B / 22B / 11B

Language Ranking_

RankLangUserSizeScore
1gs2mitchs710000
2FlogScriptmilieu125833
3Burlesquemroman (teebee)154666
4GolfScriptnarb164375
5sednarb174117
6Arcpooq203500
7Vimnn252800
8z80*yuko*252800
9JI., S.(pooq)252800
10Common LISPkozima282500
11Perltybalt89292413
12Schemexulapp302333
13xgawkeban302333
14Clojurepooq302333
15Rubyleonid312258
16LilyPondKirarinSnow312258
17Scalapooq332121
18Prologpooq332121
19Pythonleonid332121
20wakeeban352000
21dctails381842
22Python3pooq401750
23Bash (builtins)tails411707
24AWKnn421666
25Maximapooq431627
26Groovyteebee431627
27PHPo-cn471489
28JavaScriptxulapp471489
29BASICCarlos Gutierrez491428
30Cnn691014
31HaskellmoriA71985
32Rpooq89786
33OCamlksk91769
34Fortran*yuko*94744
35Iopooq102686
36C++inaniwa110636
37Javahallvabo113619
38Pascal*yuko*124564

return top