h = [float(eval(input())) for _ in range(int(eval(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(list(d.items()), key=lambda x: int(x[0])):

    print((k+v))
n = int(eval(input()))

data = {k: 0 for k in range(1, 7)}

for _ in range(n):

    tmp = float(eval(input()))

    if tmp < 165.0:

        data[1] += 1

    elif 165.0 <= tmp < 170.0:

        data[2] += 1

    elif 170.0 <= tmp < 175.0:

        data[3] += 1

    elif 175.0 <= tmp < 180.0:

        data[4] += 1

    elif 180.0 <= tmp < 185.0:

        data[5] += 1

    else:

        data[6] += 1



for k, v in list(data.items()):

    print(("{}:{}".format(k, v*"*")))
h = [float(eval(input())) for _ in range(int(eval(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(list(d.items()), key=lambda x: int(x[0])):
    print((k + v))

n = int(eval(input()))
data = {k: 0 for k in range(1, 7)}
for _ in range(n):
    tmp = float(eval(input()))
    if tmp < 165.0:
        data[1] += 1
    elif 165.0 <= tmp < 170.0:
        data[2] += 1
    elif 170.0 <= tmp < 175.0:
        data[3] += 1
    elif 175.0 <= tmp < 180.0:
        data[4] += 1
    elif 180.0 <= tmp < 185.0:
        data[5] += 1
    else:
        data[6] += 1
for k, v in list(data.items()):
    print(("{}:{}".format(k, v * "*")))

-h = [float(eval(input())) for _ in range(int(eval(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"] += "*" +n = int(eval(input())) +data = {k: 0 for k in range(1, 7)} +for _ in range(n): +    tmp = float(eval(input())) +    if tmp < 165.0: +        data[1] += 1 +    elif 165.0 <= tmp < 170.0: +        data[2] += 1 +    elif 170.0 <= tmp < 175.0: +        data[3] += 1 +    elif 175.0 <= tmp < 180.0: +        data[4] += 1 +    elif 180.0 <= tmp < 185.0: +        data[5] += 1 -        d["6"] += "*" -for k, v in sorted(list(d.items()), key=lambda x: int(x[0])): -    print((k + v)) +        data[6] += 1 +for k, v in list(data.items()): +    print(("{}:{}".format(k, v * "*")))