p00149 Eye Test_9800
Create a program that inputs the test result data of the visual acuity test and outputs the number of people who apply to each judgment based on the following visual acuity judgment table for each of the left and right eyesight.

Judgment | Sight
--- | ---
A | 1.1 or above
B | 0.6 or more and less than 1.1
C | 0.2 or more and less than 0.6
D | less than 0.2




Input

The input is given in the following format:


l1 r1
l2 r2
l3 r3
::
::


On line i, the real number li, which represents the left visual acuity of the i-th person, and the real number ri, which represents the right visual acuity, are given, separated by blanks. However, visual acuity is 0.1 or more and 2.0 or less, and is given in 0.1 increments.

The number of lines of input does not exceed 40.

Output

Please output the judgment table in the following format.

Line 1 Left eyesight is the number of people A Right eyesight is the number of people (separated by blanks)
2nd line The number of people whose left eyesight is B The number of people whose right eyesight is B (separated by blanks)
3rd line The number of people whose left eyesight is C
4th line Number of people with left eyesight D Number of people with right eyesight D (separated by blanks)

Example

Input

1.0 1.2
0.8 1.5
1.2 0.7
2.0 2.0


Output

2 3
2 1
0 0
0 0
import sys
LA = RA = 0
LB = RB = 0
LC = RC = 0
LD = RD = 0

for i in sys.stdin:
    l,r = map(float,i.split())
    if l >= 1.1:
        LA += 1
    elif 0.6 <= l <1.1:
        LB += 1
    elif 0.2 <= l < 0.6:
        LC += 1
    else:
        LD += 1

    if r >= 1.1:
        RA += 1
    elif 0.6 <= r <1.1:
        RB += 1
    elif 0.2 <= r < 0.6:
        RC += 1
    else:
        RD += 1

print(LA,RA)
print(LB,RB)
print(LC,RC)
print(LD,RD)


1.0 1.2
0.8 1.5
1.2 0.7
2.0 2.0 1.0 1.2
0.8 1.5
1.2 0.7
2.0 2.1903643288076555 1.0 1.6960573379527397
1.4596389610615816 1.5471720124202895
1.2 0.7
2.751284804693524 2.1903643288076555 1.4450818768746183 1.6960573379527397
2.61268179406582 1.5471720124202895
2.573217216239934 0.7
4.9346769267643475 2.1903643288076555 3.074377310282718 3.408310358864073
4.365908554441974 2.7842928577123516
2.573217216239934 1.750655805377047
6.112015344915439 2.378616543190681 1.0 1.2
0.8 1.5
1.2 0.7
2.751284804693524 2.1903643288076555 1.0 1.2
0.8 1.5471720124202895
1.2 0.7
2.751284804693524 2.1903643288076555 1.0 1.6960573379527397
0.8 1.5471720124202895
1.2 0.7
2.751284804693524 2.1903643288076555 1.0 1.6960573379527397
0.8413834025534568 1.5471720124202895
1.2 0.7
2.751284804693524 2.1903643288076555 1.0 1.6960573379527397
1.4596389610615816 1.5471720124202895
1.2 0.7
3.619100269325771 2.1903643288076555 1.0 1.6960573379527397
1.4596389610615816 1.5471720124202895
1.2 0.7
4.285760834475757 2.1903643288076555 1.0 1.6960573379527397
1.4596389610615816 1.5471720124202895
1.2 0.7
4.9346769267643475 2.1903643288076555 1.0 1.6960573379527397
1.4596389610615816 1.5471720124202895
1.6587055319926636 0.7
4.9346769267643475 2.1903643288076555 1.0 1.6960573379527397
1.4596389610615816 1.5471720124202895
2.573217216239934 0.7
4.9346769267643475 2.1903643288076555 1.0 1.6960573379527397
2.350460010860732 1.5471720124202895
2.573217216239934 0.7
4.9346769267643475 2.1903643288076555 1.0 1.6960573379527397
2.61268179406582 1.5471720124202895
2.573217216239934 0.7
4.9346769267643475 2.1903643288076555 1.4450818768746183 1.6960573379527397
2.61268179406582 1.5471720124202895
2.573217216239934 0.8500864926517523
4.9346769267643475 2.1903643288076555 1.4450818768746183 1.8412288178078728
2.61268179406582 1.5471720124202895
2.573217216239934 0.8500864926517523
4.9346769267643475 2.1903643288076555 1.4450818768746183 1.8412288178078728
2.6983178051647414 1.5471720124202895
2.573217216239934 0.8500864926517523
4.9346769267643475 2.1903643288076555 1.4450818768746183 2.8044369815893004
2.6983178051647414 1.5471720124202895
2.573217216239934 0.8500864926517523
4.9346769267643475 2.1903643288076555 1.4450818768746183 2.8044369815893004
3.4137368986779526 1.5471720124202895
2.573217216239934 0.8500864926517523
4.9346769267643475 2.1903643288076555 1.4450818768746183 3.408310358864073
3.4137368986779526 1.5471720124202895
2.573217216239934 0.8500864926517523
4.9346769267643475 2.1903643288076555 1.4450818768746183 3.408310358864073
3.4137368986779526 1.5471720124202895
2.573217216239934 0.8500864926517523
4.9346769267643475 2.378616543190681 1.4450818768746183 3.408310358864073
3.4137368986779526 1.5471720124202895
2.573217216239934 0.8500864926517523
5.245783885956102 2.378616543190681 1.4450818768746183 3.408310358864073
3.4137368986779526 2.3188093481344714
2.573217216239934 0.8500864926517523
5.245783885956102 2.378616543190681 1.4450818768746183 3.408310358864073
3.4137368986779526 2.3188093481344714
2.573217216239934 0.8500864926517523
5.24622461643209 2.378616543190681 1.4450818768746183 3.408310358864073
3.4137368986779526 2.7842928577123516
2.573217216239934 0.8500864926517523
5.24622461643209 2.378616543190681 1.9315362131508613 3.408310358864073
3.4137368986779526 2.7842928577123516
2.573217216239934 0.8500864926517523
5.24622461643209 2.378616543190681 1.9315362131508613 3.408310358864073
4.365908554441974 2.7842928577123516
2.573217216239934 0.8500864926517523
5.24622461643209 2.378616543190681 1.9315362131508613 3.408310358864073
4.365908554441974 2.7842928577123516
2.573217216239934 0.8500864926517523
6.112015344915439 2.378616543190681 2.4607261525255337 3.408310358864073
4.365908554441974 2.7842928577123516
2.573217216239934 0.8500864926517523
6.112015344915439 2.378616543190681 2.5177849506474 3.408310358864073
4.365908554441974 2.7842928577123516
2.573217216239934 0.8500864926517523
6.112015344915439 2.378616543190681 2.954501321924349 3.408310358864073
4.365908554441974 2.7842928577123516
2.573217216239934 0.8500864926517523
6.112015344915439 2.378616543190681 3.074377310282718 3.408310358864073
4.365908554441974 2.7842928577123516
2.573217216239934 0.8500864926517523
6.112015344915439 2.378616543190681 3.5233901762730016 3.408310358864073
4.365908554441974 2.7842928577123516
2.573217216239934 1.750655805377047
6.112015344915439 2.378616543190681 3.5233901762730016 3.5514557871736065
4.365908554441974 2.7842928577123516
2.573217216239934 1.750655805377047
6.112015344915439 2.378616543190681 3.5233901762730016 3.5514557871736065
4.365908554441974 3.564724829824841
2.573217216239934 1.750655805377047
6.112015344915439 2.378616543190681 3.5233901762730016 3.5514557871736065
4.365908554441974 3.7427551569511905
2.573217216239934 1.750655805377047
6.112015344915439 2.378616543190681 3.5233901762730016 3.5514557871736065
4.365908554441974 3.7427551569511905
2.65096330525947 1.750655805377047
6.112015344915439 2.378616543190681 3.5233901762730016 3.5514557871736065
4.365908554441974 3.7427551569511905
3.14253843502964 1.750655805377047
6.112015344915439 2.378616543190681 4.405315452799971 3.5514557871736065
4.365908554441974 3.7427551569511905
3.14253843502964 1.750655805377047
6.112015344915439 2.378616543190681 4.405315452799971 3.5514557871736065
4.365908554441974 3.7427551569511905
3.14253843502964 1.750655805377047
6.338474853556925 2.378616543190681 4.405315452799971 3.5514557871736065
4.365908554441974 3.7427551569511905
3.714852896898838 1.750655805377047
6.338474853556925 2.378616543190681 4.405315452799971 3.5514557871736065
4.365908554441974 3.7427551569511905
3.714852896898838 1.750655805377047
6.760594986408414 2.378616543190681 4.405315452799971 3.5514557871736065
4.365908554441974 4.0915222129005535
3.714852896898838 1.750655805377047
6.760594986408414 2.378616543190681 4.604375776443092 3.5514557871736065
4.365908554441974 4.0915222129005535
3.714852896898838 1.750655805377047
6.760594986408414 2.378616543190681 4.604375776443092 3.5514557871736065
4.365908554441974 4.104434031470705
3.714852896898838 1.750655805377047
6.760594986408414 2.378616543190681 4.604375776443092 3.5514557871736065
4.365908554441974 4.104434031470705
3.714852896898838 2.1632596448585035
6.760594986408414 2.378616543190681 4.604375776443092 3.612255806231219
4.365908554441974 4.104434031470705
3.714852896898838 2.1632596448585035
6.760594986408414 2.378616543190681 4.604375776443092 3.612255806231219
4.7353868560657695 4.104434031470705
3.714852896898838 2.1632596448585035
6.760594986408414 2.378616543190681 4.604375776443092 3.7071925641230177
4.7353868560657695 4.104434031470705
3.714852896898838 2.1632596448585035
6.760594986408414 2.378616543190681 4.604375776443092 3.7071925641230177
4.7353868560657695 4.104434031470705
4.0659801656255485 2.1632596448585035
6.760594986408414 2.378616543190681 4.604375776443092 3.7071925641230177
4.7353868560657695 4.104434031470705
4.324596830488077 2.1632596448585035
6.760594986408414 2.378616543190681 4.655350061703787 3.7071925641230177
4.7353868560657695 4.104434031470705
4.324596830488077 2.1632596448585035
6.760594986408414 2.378616543190681 4.892857451797115 3.7071925641230177
4.7353868560657695 4.104434031470705
4.324596830488077 2.1632596448585035
6.760594986408414 2.378616543190681 4.892857451797115 4.189121474635282
4.7353868560657695 4.104434031470705
4.324596830488077 2.1632596448585035
6.760594986408414 2.378616543190681 4.892857451797115 4.189121474635282
4.7353868560657695 4.104434031470705
5.315089722809906 2.1632596448585035
6.760594986408414 2.378616543190681 4.892857451797115 4.189121474635282
4.7353868560657695 4.728730094349876
5.315089722809906 2.1632596448585035
6.760594986408414 2.378616543190681 4.892857451797115 4.9504261950760275
4.7353868560657695 4.728730094349876
5.315089722809906 2.1632596448585035
6.760594986408414 2.378616543190681 4.892857451797115 4.9504261950760275
4.7353868560657695 4.728730094349876
5.315089722809906 2.1632596448585035
7.1288394485287405 2.378616543190681 4.892857451797115 4.9504261950760275
4.7353868560657695 4.728730094349876
5.315089722809906 2.468573738434983
7.1288394485287405 2.378616543190681 5.200132325803448 4.9504261950760275
4.7353868560657695 4.728730094349876
5.315089722809906 2.468573738434983
7.1288394485287405 2.378616543190681 5.200132325803448 4.9504261950760275
4.7353868560657695 4.728730094349876
5.315089722809906 3.4199661841419324
7.1288394485287405 2.378616543190681 6.137512162491219 4.9504261950760275
4.7353868560657695 4.728730094349876
5.315089722809906 3.4199661841419324
7.1288394485287405 2.378616543190681 6.137512162491219 4.9504261950760275
4.7353868560657695 4.728730094349876
6.2277048240635 3.4199661841419324
7.1288394485287405 2.378616543190681 6.137512162491219 5.322234728587352
4.7353868560657695 4.728730094349876
6.2277048240635 3.4199661841419324
7.1288394485287405 2.378616543190681 6.137512162491219 5.322234728587352
4.7353868560657695 5.059937163469296
6.2277048240635 3.4199661841419324
7.1288394485287405 2.378616543190681 6.137512162491219 5.322234728587352
4.7353868560657695 5.059937163469296
6.2277048240635 3.4199661841419324
7.1288394485287405 2.4571145607010716 6.137512162491219 5.322234728587352
4.7353868560657695 5.059937163469296
6.2277048240635 3.6235724475072484
7.1288394485287405 2.4571145607010716 6.137512162491219 5.322234728587352
4.7353868560657695 5.059937163469296
6.2277048240635 3.6235724475072484
7.639432386537991 2.4571145607010716 6.137512162491219 5.322234728587352
4.7353868560657695 5.059937163469296
6.2277048240635 3.6235724475072484
7.639432386537991 3.0586127755129247 6.137512162491219 5.322234728587352
4.7353868560657695 5.059937163469296
6.583692442784352 3.6235724475072484
7.639432386537991 3.0586127755129247 6.137512162491219 5.322234728587352
4.7353868560657695 5.059937163469296
6.583692442784352 3.6235724475072484
7.639432386537991 3.5636870006098924 6.137512162491219 5.322234728587352
4.7353868560657695 5.215232119243187
6.583692442784352 3.6235724475072484
7.639432386537991 3.5636870006098924 6.137512162491219 5.927427344911293
4.7353868560657695 5.215232119243187
6.583692442784352 3.6235724475072484
7.639432386537991 3.5636870006098924 6.137512162491219 5.927427344911293
4.7353868560657695 5.215232119243187
6.583692442784352 3.6235724475072484
7.639432386537991 3.8729254535202253 6.137512162491219 5.927427344911293
4.7353868560657695 5.215232119243187
6.583692442784352 4.045610837589516
7.639432386537991 3.8729254535202253 6.137512162491219 5.927427344911293
4.7353868560657695 5.696411752800577
6.583692442784352 4.045610837589516
7.639432386537991 3.8729254535202253 6.137512162491219 5.927427344911293
4.7353868560657695 5.696411752800577
6.583692442784352 4.045610837589516
7.639432386537991 4.1567652101764905 6.137512162491219 5.927427344911293
4.7353868560657695 5.696411752800577
6.583692442784352 4.045610837589516
8.626776633083766 4.1567652101764905 6.137512162491219 5.927427344911293
4.7353868560657695 5.696411752800577
6.583692442784352 4.848569888224749
8.626776633083766 4.1567652101764905 6.137512162491219 5.927427344911293
4.7353868560657695 5.696411752800577
7.498864592020534 4.848569888224749
8.626776633083766 4.1567652101764905 6.137512162491219 6.887366325270936
4.7353868560657695 5.696411752800577
7.498864592020534 4.848569888224749
8.626776633083766 4.1567652101764905 6.137512162491219 6.887366325270936
4.7353868560657695 6.177680952559085
7.498864592020534 4.848569888224749
8.626776633083766 4.1567652101764905 6.272498130510221 6.887366325270936
4.7353868560657695 6.177680952559085
7.498864592020534 4.848569888224749
8.626776633083766 4.1567652101764905 6.272498130510221 6.887366325270936
4.7353868560657695 6.177680952559085
7.986107176856311 4.848569888224749
8.626776633083766 4.1567652101764905 6.272498130510221 6.887366325270936
5.246756186148859 6.177680952559085
7.986107176856311 4.848569888224749
8.626776633083766 4.1567652101764905 6.272498130510221 6.887366325270936
5.246756186148859 6.177680952559085
7.986107176856311 4.848569888224749
8.626776633083766 4.847983777555621 6.272498130510221 6.887366325270936
5.246756186148859 6.861683153699152
7.986107176856311 4.848569888224749
8.626776633083766 4.847983777555621 6.272498130510221 6.887366325270936
5.246756186148859 6.861683153699152
7.986107176856311 4.848569888224749
8.626776633083766 5.317637369649768 6.272498130510221 6.887366325270936
5.246756186148859 6.861683153699152
8.309309343043033 4.848569888224749
8.626776633083766 5.317637369649768 6.63891504045787 6.887366325270936
5.246756186148859 6.861683153699152
8.309309343043033 4.848569888224749
8.626776633083766 5.317637369649768 6.63891504045787 6.887366325270936
5.787805836524581 6.861683153699152
8.309309343043033 4.848569888224749
8.626776633083766 5.317637369649768 6.63891504045787 6.887366325270936
5.787805836524581 6.861683153699152
8.309309343043033 4.853529028967551
8.626776633083766 5.317637369649768 6.63891504045787 6.887366325270936
5.787805836524581 6.861683153699152
8.711695873450058 4.853529028967551
8.626776633083766 5.317637369649768 6.63891504045787 6.887366325270936
5.787805836524581 6.861683153699152
8.711695873450058 4.853529028967551
9.47177242809682 5.317637369649768 6.63891504045787 6.887366325270936
5.787805836524581 6.861683153699152
8.711695873450058 5.062951729024531
9.47177242809682 5.317637369649768 6.63891504045787 6.887366325270936
5.787805836524581 6.861683153699152
8.711695873450058 5.062951729024531
9.666025414850173 5.317637369649768 6.63891504045787 6.887366325270936
5.787805836524581 6.861683153699152
8.711695873450058 5.61051220587587
9.666025414850173 5.317637369649768 6.63891504045787 6.887366325270936
5.787805836524581 6.861683153699152
8.711695873450058 5.61051220587587
9.666025414850173 5.879184211479655 6.63891504045787 6.887366325270936
5.787805836524581 6.861683153699152
8.711695873450058 6.08383146250164
9.666025414850173 5.879184211479655
2 3
2 1
0 0
0 0 2 3
2 1
0 0
0 0
 3 3
1 1
0 0
0 0
 4 3
0 1
0 0
0 0
 4 4
0 0
0 0
0 0
 2 3
2 1
0 0
0 0
 2 3
2 1
0 0
0 0
 2 3
2 1
0 0
0 0
 2 3
2 1
0 0
0 0
 3 3
1 1
0 0
0 0
 3 3
1 1
0 0
0 0
 3 3
1 1
0 0
0 0
 3 3
1 1
0 0
0 0
 3 3
1 1
0 0
0 0
 3 3
1 1
0 0
0 0
 3 3
1 1
0 0
0 0
 4 3
0 1
0 0
0 0
 4 3
0 1
0 0
0 0
 4 3
0 1
0 0
0 0
 4 3
0 1
0 0
0 0
 4 3
0 1
0 0
0 0
 4 3
0 1
0 0
0 0
 4 3
0 1
0 0
0 0
 4 3
0 1
0 0
0 0
 4 3
0 1
0 0
0 0
 4 3
0 1
0 0
0 0
 4 3
0 1
0 0
0 0
 4 3
0 1
0 0
0 0
 4 3
0 1
0 0
0 0
 4 3
0 1
0 0
0 0
 4 3
0 1
0 0
0 0
 4 3
0 1
0 0
0 0
 4 3
0 1
0 0
0 0
 4 3
0 1
0 0
0 0
 4 4
0 0
0 0
0 0
 4 4
0 0
0 0
0 0
 4 4
0 0
0 0
0 0
 4 4
0 0
0 0
0 0
 4 4
0 0
0 0
0 0
 4 4
0 0
0 0
0 0
 4 4
0 0
0 0
0 0
 4 4
0 0
0 0
0 0
 4 4
0 0
0 0
0 0
 4 4
0 0
0 0
0 0
 4 4
0 0
0 0
0 0
 4 4
0 0
0 0
0 0
 4 4
0 0
0 0
0 0
 4 4
0 0
0 0
0 0
 4 4
0 0
0 0
0 0
 4 4
0 0
0 0
0 0
 4 4
0 0
0 0
0 0
 4 4
0 0
0 0
0 0
 4 4
0 0
0 0
0 0
 4 4
0 0
0 0
0 0
 4 4
0 0
0 0
0 0
 4 4
0 0
0 0
0 0
 4 4
0 0
0 0
0 0
 4 4
0 0
0 0
0 0
 4 4
0 0
0 0
0 0
 4 4
0 0
0 0
0 0
 4 4
0 0
0 0
0 0
 4 4
0 0
0 0
0 0
 4 4
0 0
0 0
0 0
 4 4
0 0
0 0
0 0
 4 4
0 0
0 0
0 0
 4 4
0 0
0 0
0 0
 4 4
0 0
0 0
0 0
 4 4
0 0
0 0
0 0
 4 4
0 0
0 0
0 0
 4 4
0 0
0 0
0 0
 4 4
0 0
0 0
0 0
 4 4
0 0
0 0
0 0
 4 4
0 0
0 0
0 0
 4 4
0 0
0 0
0 0
 4 4
0 0
0 0
0 0
 4 4
0 0
0 0
0 0
 4 4
0 0
0 0
0 0
 4 4
0 0
0 0
0 0
 4 4
0 0
0 0
0 0
 4 4
0 0
0 0
0 0
 4 4
0 0
0 0
0 0
 4 4
0 0
0 0
0 0
 4 4
0 0
0 0
0 0
 4 4
0 0
0 0
0 0
 4 4
0 0
0 0
0 0
 4 4
0 0
0 0
0 0
 4 4
0 0
0 0
0 0
 4 4
0 0
0 0
0 0
 4 4
0 0
0 0
0 0
 4 4
0 0
0 0
0 0
 4 4
0 0
0 0
0 0
 4 4
0 0
0 0
0 0
 4 4
0 0
0 0
0 0
 4 4
0 0
0 0
0 0
 4 4
0 0
0 0
0 0
 4 4
0 0
0 0
0 0
 4 4
0 0
0 0
0 0
 4 4
0 0
0 0
0 0
 4 4
0 0
0 0
0 0
 4 4
0 0
0 0
0 0
 4 4
0 0
0 0
0 0
