a = b = c = d = e = f = 0
while True:
    x = int(input())
    if x == 0:
        break
    a += x // 100
    x %= 100
    b += x // 50
    x %= 50
    c += x // 20
    x %= 20
    d += x // 10
    x %= 10
    e += x // 5
    x %= 5
    f += x
print(f"100:{a},50:{b},20:{c},10:{d},5:{e},1:{f}")