Go: package main

import (
	"bufio"
	"os"
	"strings"
	"strconv"
	"fmt"
)

var scanner= bufio.NewScanner(os.Stdin)

func main() {
	result := make([][]int, 4)
	for i :=range result {
		result[i] = make([]int, 2)
	}
	for scanner.Scan() {
		buf := strings.Split(scanner.Text(), " ")
		l, _ := strconv.ParseFloat(buf[0], 64)
		r, _ := strconv.ParseFloat(buf[1], 64)
		if 1.1 <= l {
			result[0][0]++
		} else if 0.6 <= l && l < 1.1 {
			result[1][0]++
		} else if 0.2 <= l && l < 0.6 {
			result[2][0]++
		} else {
			result[3][0]++
		}
		if 1.1 <= r {
			result[0][1]++
		} else if 0.6 <= r && r < 1.1 {
			result[1][1]++
		} else if 0.2 <= r && r < 0.6 {
			result[2][1]++
		} else {
			result[3][1]++
		}
	}
	ans := make([][]string, 4)
	for i :=range ans {
		ans[i] = make([]string, 2)
	}
	for i := range result {
		for j := range result[i] {
			ans[i][j] = strconv.Itoa(result[i][j])
		}
	}
	for i := 0; i < 4; i++ {
		fmt.Println(strings.Join(ans[i], " "))
	}
}

Python: # -*- coding: utf-8 -*-

import sys
import os

A = [0, 0]
B = [0, 0]
C = [0, 0]
D = [0, 0]

for s in sys.stdin:
    l, r = map(float, s.split())

    if l >= 1.1:
        A[0] += 1
    elif l >= 0.6:
        B[0] += 1
    elif l >= 0.2:
        C[0] += 1
    else:
        D[0] += 1

    if r >= 1.1:
        A[1] += 1
    elif l >= 0.6:
        B[1] += 1
    elif l >= 0.2:
        C[1] += 1
    else:
        D[1] += 1

print(*A)
print(*B)
print(*C)
print(*D)

Python: lr = [0 for i in range(8)]
while True:
    try:
        a,b = map(float,input().split())
    except:
        break
    if a >= 1.1:
        lr[0] += 1
    elif a >= 0.6:
        lr[2] += 1
    elif a >= 0.2:
        lr[4] += 1
    else:
        lr[6] += 1
    if b >= 1.1:
        lr[1] += 1
    elif b >= 0.6:
        lr[3] += 1
    elif b >= 0.2:
        lr[5] += 1
    else:
        lr[7] += 1
print(lr[0],lr[1])
print(lr[2],lr[3])
print(lr[4],lr[5])
print(lr[6],lr[7])

Python: ld, rd = [0, 0, 0, 0], [0, 0, 0, 0]
while True:
    try:
        l, r = map(float, input().split())
        if l < 0.2:
            ld[3] += 1
        elif l < 0.6:
            ld[2] += 1
        elif l < 1.1:
            ld[1] += 1
        else:
            ld[0] += 1

        if r < 0.2:
            rd[3] += 1
        elif r < 0.6:
            rd[2] += 1
        elif r < 1.1:
            rd[1] += 1
        else:
            rd[0] += 1

    except:
        break

for l, r in zip(ld, rd):
    print(l, r)

Python: E=[[0 for j in range(4)]for i in range(2)]
while True:
  try:
    p =list(map(float,input().split()))
  except:
    break
  for i in range(2):
    if p[i]>=1.1:
      E[i][0]+=1
    elif p[i]>=0.6:
      E[i][1]+=1
    elif p[i]>=0.2:
      E[i][2]+=1
    else:
      E[i][3]+=1
      
for i in range(4):
  print(E[0][i], E[1][i])

Python: # -*- coding: utf-8 -*-

import sys
import os

A = [0, 0]
B = [0, 0]
C = [0, 0]
D = [0, 0]

for s in sys.stdin:
    l, r = map(float, s.split())

    if l >= 1.1:
        A[0] += 1
    elif l >= 0.6:
        B[0] += 1
    elif l >= 0.2:
        C[0] += 1
    else:
        D[0] += 1

    if r >= 1.1:
        A[1] += 1
    elif r >= 0.6:
        B[1] += 1
    elif r >= 0.2:
        C[1] += 1
    else:
        D[1] += 1

print(*A)
print(*B)
print(*C)
print(*D)

Python: li, ri = [0, 0, 0, 0], [0, 0, 0, 0]
while True:
    try:
        l, r = map(float, input().split())
    except:
        break
    
    if l < 0.2:
        li[3] += 1
    elif l < 0.6:
        li[2] += 1
    elif l < 1.1:
        li[1] += 1
    else:
        li[0] += 1
 
    if r < 0.2:
        ri[3] += 1
    elif r < 0.6:
        ri[2] += 1
    elif r < 1.1:
        ri[1] += 1
    else:
        ri[0] += 1

for l, r in zip(li, ri):
    print(l, r)

Python: Res = [[0,0,0,0],[0,0,0,0]]
while True:
    try:
        l,r = map(float,input().split())
        if l < 0.2:
            Res[0][3] += 1
        elif l < 0.6:
            Res[0][2] += 1
        elif l < 1.1:
            Res[0][1] += 1
        else:
            Res[0][0] += 1

        if r < 0.2:
            Res[1][3] += 1
        elif r < 0.6:
            Res[1][2] += 1
        elif r < 1.1:
            Res[1][1] += 1
        else:
            Res[1][0] += 1
    except:
        for i in range(4):
            ans = str(Res[0][i]) + " " + str(Res[1][i])
            print(ans)
        break

Python: def get_input():
    while True:
        try:
            yield ''.join(input())
        except EOFError:
            break

def check(n):
    if n >= 11:
        return 0
    elif n >= 6:
        return 1
    elif n >= 2:
        return 2
    else:
        return 3

N = list(get_input())

cntL = [0,0,0,0]
cntR = [0,0,0,0]

for lll in range(len(N)):
    l,r = [int(float(i)*10) for i in N[lll].split()]
    cntL[check(l)] += 1
    cntR[check(r)] += 1

for i in range(4):
    print(cntL[i],cntR[i])

Python: # AOJ 0149: Eye Test
# Python3 2018.6.17 bal4u

tbl = [[0 for j in range(4)] for i in range(2)]
while True:
	try: p = list(map(float, input().split()))
	except: break
	for i in range(2):
		if p[i] >= 1.1: tbl[i][0] += 1
		elif p[i] >= 0.6: tbl[i][1] += 1
		elif p[i] >= 0.2: tbl[i][2] += 1
		else: tbl[i][3] += 1
for i in range(4):
	print(tbl[0][i], tbl[1][i])

Python: # Aizu Problem 00149: Eye Test
#
import sys, math, os, copy

# read input:
PYDEV = os.environ.get('PYDEV')
if PYDEV=="True":
    sys.stdin = open("sample-input.txt", "rt")


def get_judgement(x):
    if x >= 1.1:
        return "A"
    elif x >= .6:
        return "B"
    elif x >= .2:
        return "C"
    else:
        return "D"

    
count = {char: {"left": 0, "right": 0} for char in ['A', 'B', 'C', 'D']}
for line in sys.stdin:
    left, right = [float(_) for _ in line.split()]
    count[get_judgement(left)]["left"] += 1
    count[get_judgement(right)]["right"] += 1


for char in ['A', 'B', 'C', 'D']:
    print(count[char]["left"], count[char]["right"])

Python: import sys
import math
al=0
bl=0
cl=0
dl=0
ar=0
br=0
cr=0
dr=0
try:
    while True:
        l,r=map(float,input().split())
        if(l>=1.1):
            al=al+1
        elif(l>=0.6 and l<1.1):
            bl=bl+1
        elif(l>=0.2 and l<0.6):
            cl=cl+1
        else:
            dl=dl+1
        if(r>=1.1):
            ar=ar+1
        elif(r>=0.6 and r<1.1):
            br=br+1
        elif(r>=0.2 and r<0.6):
            cr=cr+1
        else:
            dr=dr+1
except EOFError:
    pass
print(str(al)+' '+str(ar))
print(str(bl)+' '+str(br))
print(str(cl)+' '+str(cr))
print(str(dl)+' '+str(dr))

Python: # -*- coding: utf-8 -*-
"""
http://judge.u-aizu.ac.jp/onlinejudge/description.jsp?id=0149

"""
import sys
from sys import stdin
from collections import defaultdict
input = stdin.readline


def process_data(result, rank):
    if result >= 1.1:
        rank['A'] += 1
    elif result >= 0.6:
        rank['B'] += 1
    elif result >= 0.2:
        rank['C'] += 1
    else:
        rank['D'] += 1


def main(args):
    left_rank = defaultdict(int)
    right_rank = defaultdict(int)
    for line in sys.stdin:
        l, r = map(float, line.split())
        process_data(l, left_rank)
        process_data(r, right_rank)

    print('{} {}'.format(left_rank['A'], right_rank['A']))
    print('{} {}'.format(left_rank['B'], right_rank['B']))
    print('{} {}'.format(left_rank['C'], right_rank['C']))
    print('{} {}'.format(left_rank['D'], right_rank['D']))


if __name__ == '__main__':
    main(sys.argv[1:])

Python: lvl = [1.1, 0.6, 0.2, 0.0] 
rst = [[0]*4 for _ in range(2)]
eyes = []
while True:
    try:
        l,r = map(float,input().strip().split())
        eyes.append([l,r])
    except EOFError:
        break

for e in eyes:
    for lr in range(2):
        for l in range(len(lvl)):
            if e[lr]>=lvl[l]: 
                rst[lr][l] += 1
                break
        else:
            raise ValueError('Do not come here')

for lv in range(len(lvl)):
    print("%d %d" % (rst[0][lv],rst[1][lv]))