Go: package main

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

var scanner = bufio.NewScanner(os.Stdin)

func main() {
	result := make([]int, 6)
	scanner.Scan()
	n, _ := strconv.Atoi(scanner.Text())
	for i := 0; i < n; i++ {
		scanner.Scan()
		h, _ := strconv.ParseFloat(scanner.Text(), 64)
		if h < 165.0 {
			result[0]++
		} else if 165.0 <= h && h < 170.0 {
			result[1]++
		} else if 170.0 <= h && h < 175.0 {
			result[2]++
		} else if 175.0 <= h && h < 180.0 {
			result[3]++
		} else if 180.0 <= h && h < 185.0 {
			result[4]++
		} else if 185.0 <= h {
			result[5]++
		}
	}
	for i := 0; i < 6; i++ {
		fmt.Printf("%d:", i+1)
		for j := 0; j < result[i]; j++ {
			fmt.Print("*")
		}
		fmt.Println()
	}
}

Python: n = int(input())
H=[]
for i in range(n):
  H.append(float(input()))
c1=0
c2=0
c3=0
c4=0
c5=0
c6=0

for j in range(n):
  if H[j]< 165.0:
    c1+=1
  elif 165.0<= H[j]<170.0:
    c2+=1
  elif 170.0<= H[j]<175.0:
    c3+=1
  elif 175.0<= H[j]<180.0:
    c4+=1
  elif 180.0<= H[j]<185.0:
    c5+=1    
  else:
    c6+=1
    

print("1:"+ c1*"*", sep="")
print("2:"+ c2*"*", sep="")
print("3:"+ c3*"*", sep="")
print("4:"+ c4*"*", sep="")
print("5:"+ c5*"*", sep="")
print("6:"+ c6*"*", sep="")

Python: h = [float(input()) for _ in range(int(input()))]
d = {"1": ":","2": ":","3": ":","4": ":","5": ":","6": ":"}
for v in h:
    if v < 165.0:
        d["1"] += "*"
    elif v >= 165.0 and v < 170.0:
        d["2"] += "*"
    elif v >= 170.0 and v < 175.0:
        d["3"] += "*"
    elif v >= 175.0 and v < 180.0:
        d["4"] += "*"
    elif v >= 180.0 and v < 185.0:
        d["5"] += "*"
    else:
        d["6"] += "*"

for k, v in sorted(d.items(), key=lambda x: int(x[0])):
    print(k+v)

Python: a={0:0,1:0,2:0,3:0,4:0,5:0}
for _ in range(int(input())):
    b=int(float(input()))
    if b<165:b=160
    elif b>185:b=185
    a[b//5-32]+=1
for i in a:print('%d:'%(i+1)+'*'*a[i])

Python: dic={1:0,2:0,3:0,4:0,5:0,6:0}
n=int(input())
for i in range(n):
    N=float(input())
    if N<165:dic[1] +=1
    elif 165<=N<170:dic[2] +=1
    elif 170<=N<175:dic[3] += 1
    elif 175<=N<180:dic[4] += 1
    elif 180<=N<185:dic[5] += 1
    else:dic[6] +=1
for i in range(6):print("%d:"%(i+1)+"*"*dic[i+1])

Python: n = int(input())
hist = [""] * 6

for _ in range(n):
    h = float(input())

    if h < 165:
        hist[0] += "*"
    elif 165 <= h < 170:
        hist[1] += "*"
    elif 170 <= h < 175:
        hist[2] += "*"
    elif 175 <= h < 180:
        hist[3] += "*"
    elif 180 <= h < 185:
        hist[4] += "*"
    else:
        hist[5] += "*"

for i in range(6):
    print(str(i+1) + ":" + hist[i])

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


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


def main(args):
    ranks = [0] * 6
    n = int(input())
    for _ in range(n):
        h = float(input())
        if h < 160.0:
            h = 160.0
        if h >= 190.0:
            h = 189.9
        pos = int((h - 160.0) / 5)
        ranks[pos] += 1

    for i, f in enumerate(ranks):
        print('{}:{}'.format(i+1, '*'*f))


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

Python: n = int(input())
data = {
    1: 0, 2: 0, 3: 0, 4: 0, 5: 0, 6: 0
}

for _ in range(n):
    x = float(input())
    if x < 165.0:
        data[1] += 1
    elif 165.0 <= x < 170.0:
        data[2] += 1
    elif 170.0 <= x < 175.0:
        data[3] += 1
    elif 175.0 <= x < 180.0:
        data[4] += 1
    elif 180.0 <= x < 185.0:
        data[5] += 1
    elif 185.0 <= x:
        data[6] += 1

for key, val in data.items():
    a = '*' * val
    print('{}:{}'.format(key, a))

Python: n = int(input())
ans = ["1:","2:","3:","4:","5:","6:"]
for i in range(n):
    num = float(input())
    if num < 165.0:
        ans[0] = ans[0] + "*"
    elif num < 170.0:
        ans[1] = ans[1] + "*"
    elif num < 175.0:
        ans[2] = ans[2] + "*"
    elif num < 180.0:
        ans[3] = ans[3] + "*"
    elif num < 185.0:
        ans[4] = ans[4] + "*"
    else:
        ans[5] = ans[5] + "*"
for k in range(len(ans)):
    print(ans[k])

Python: n = int(input())
Tall_list = [0] * 6
for i in range(n) :
    tall = float(input())
    if tall < 165 :
        Tall_list[0] += 1
    elif tall < 170 :
        Tall_list[1] += 1
    elif tall < 175 :
        Tall_list[2] += 1
    elif tall < 180 :
        Tall_list[3] += 1
    elif tall < 185 :
        Tall_list[4] += 1
    else :
        Tall_list[5] += 1

for i in range(6) :
    print(i+1, ":", sep = "", end = "")
    for j in range(Tall_list[i]) :
        print("*", end = "")
    print()

Python: n = int(input())
height = [0 for i in range(6)]
for i in range(n):
    tmp = float(input())
    if tmp < 165:
        height[0]+=1
    elif tmp < 170:
        height[1]+=1
    elif tmp < 175:
        height[2]+=1
    elif tmp < 180:
        height[3]+=1
    elif tmp < 185:
        height[4]+=1
    else:
        height[5]+=1
for i, j in enumerate(height,1):
    print(str(i)+":"+"*"*j)

Python: n = int(input())
h = [0 for i in range(6)]
for i in range(n):
    a = float(input())
    if(a < 165.0):
        h[0] += 1
    elif(165.0 <= a and a < 170.0):
        h[1] += 1
    elif(170.0 <= a and a < 175.0):
        h[2] += 1
    elif(175.0 <= a and a < 180.0):
        h[3] += 1
    elif(180.0 <= a and a < 185.0):
        h[4] += 1
    else:
        h[5] += 1

for i in range(len(h)):
    print(str(i + 1) + ":" + "*"*h[i])

Python: import math

N = int(input())

data = [0 for i in range(6)]

for l in range(N):
    n = float(input())
    if n < 165.0:
        data[0] += 1
    elif n < 170.0:
        data[1] += 1
    elif n < 175.0:
        data[2] += 1
    elif n < 180.0:
        data[3] += 1
    elif n < 185.0:
        data[4] += 1
    else:
        data[5] += 1

for l in range(6):
    print(l+1, end="")
    print(":", end="")
    for i in range(data[l]):
        print("*", end="")
    print("")

Python: import os
import math

def main():
    lst = [0,0,0,0,0,0]
    for i in range(0, int(input())):
        temp = float(input())
        if temp < 165:
            lst[0] += 1
        elif temp < 170:
            lst[1] += 1
        elif temp < 175:
            lst[2] += 1
        elif temp < 180:
            lst[3] += 1
        elif temp < 185:
            lst[4] += 1
        else:
            lst[5] += 1
    for i in range(0,6):
        print("{}:".format(i+1), end="")
        for j in range(0,lst[i]):
            print("*", end = "")
        print()

main()

Python: import os
import math

def main():
    lst = [0,0,0,0,0,0]
    for i in range(0, int(input())):
        temp = float(input())
        if temp < 165:
            lst[0] += 1
        elif temp < 170:
            lst[1] += 1
        elif temp < 175:
            lst[2] += 1
        elif temp < 180:
            lst[3] += 1
        elif temp < 185:
            lst[4] += 1
        else:
            lst[5] += 1
    for i in range(0,6):
        print("{}:".format(i+1), end="")
        for j in range(0,lst[i]):
            print("*", end = "")
        print()

main()

Python: def getIndex(n):
    i = 6
    if n < 165:
        i = 1
    elif n >= 165 and n < 170:
        i = 2
    elif n >= 170 and n < 175:
        i = 3
    elif n >= 175 and n < 180:
        i = 4
    elif n >= 180 and n < 185:
        i = 5
    return i

nums = [0] * 7
n = int(input())

for i in range(0,n):
    h = float(input())
    nums[getIndex(h)] += 1

for i in range(1,len(nums)):
    ans = str(i) + ":"
    for j in range(0,nums[i]):
        ans += "*"
    print(ans)

Python: n = int(input())
hist = [''] * 6

for _ in range(n):
  h = float(input())
  
  if h < 165:
    hist[0] += '*'
  elif 165 <= h < 170:
    hist[1] += "*"
  elif 170 <= h < 175:
    hist[2] += "*"
  elif 175 <= h < 180:
    hist[3] += "*"
  elif 180 <= h < 185:
    hist[4] += "*"
  else:
    hist[5] += "*"
  
for i in range(6):
  print(str(i+1) + ':' + hist[i])