import sys for a in sys.argv[1:]:b=[*map(int,a.split())];c=b+[0];d=b.count;x=d(b[0]);u=x<2;y=d(c[x])*u;z=d(c[x+y])*(x+y<3);print("1💎 "*u+f"{x}🥇"+(f" {y}🥈")*(y>0)+(f" {z}🥉")*(z>0))