# coding: utf-8
from itertools import product, groupby
s=["○", "○", "○", "△", "△", "×"]
print sorted(((lambda h:(h[0], len(h)))(list(g))
for _,g in groupby(sorted(map(lambda i:''.join(sorted(i)),
product(s, repeat=2))))),
key=lambda (l,r):r,
reverse=True)
IyBjb2Rpbmc6IHV0Zi04CmZyb20gaXRlcnRvb2xzIGltcG9ydCBwcm9kdWN0LCBncm91cGJ5CnM9WyLil4siLCAi4peLIiwgIuKXiyIsICLilrMiLCAi4pazIiwgIsOXIl0KcHJpbnQgc29ydGVkKCgobGFtYmRhIGg6KGhbMF0sIGxlbihoKSkpKGxpc3QoZykpCiAgICAgICAgICAgICAgZm9yIF8sZyBpbiBncm91cGJ5KHNvcnRlZChtYXAobGFtYmRhIGk6Jycuam9pbihzb3J0ZWQoaSkpLAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIHByb2R1Y3QocywgcmVwZWF0PTIpKSkpKSwKICAgICAgICAgICAgIGtleT1sYW1iZGEgKGwscik6ciwKICAgICAgICAgICAgIHJldmVyc2U9VHJ1ZSk=
[('\xe2\x96\xb3\xe2\x97\x8b', 12), ('\xe2\x97\x8b\xe2\x97\x8b', 9), ('\xc3\x97\xe2\x97\x8b', 6), ('\xc3\x97\xe2\x96\xb3', 4), ('\xe2\x96\xb3\xe2\x96\xb3', 4), ('\xc3\x97\xc3\x97', 1)]