a=input("Enter the name of first child = ")
a1=float(input("Enter the marks of English = "))
a2=float(input("Enter the marks of Hindi = "))
a3=float(input("Enter the marks of Mathematics = "))
a4=float(input("Enter the marks of Science = "))
a5=float(input("Enter the marks of Social Science = "))
b=input("Enter the name of second child = ")
b1=float(input("Enter the marks of English = "))
b2=float(input("Enter the marks of Hindi = "))
b3=float(input("Enter the marks of Mathematics = "))
b4=float(input("Enter the marks of Science = "))
b5=float(input("Enter the marks of Social Science = "))
c=input("Enter the name of third child = ")
c1=float(input("Enter the marks of English = "))
c2=float(input("Enter the marks of Hindi = "))
c3=float(input("Enter the marks of Mathematics = "))
c4=float(input("Enter the marks of Science = "))
c5=float(input("Enter the marks of Social Science = "))
am=(a1+a2+a3+a4+a5)/5
bm=(b1+b2+b3+b4+b5)/5
cm=(c1+c2+c3+c4+c5)/5
if am>bm and am>cm:
if(bm>cm):
print(a,">",b,">",c)
else:
print(a,">",c,">",b)
elif bm>cm and bm>am:
if(am>cm):
print(b,">",a,">",c)
else:
print(b,">",c,">",a)
if cm>bm and cm>am:
if(bm>am):
print(c,">",b,">",a)
else:
print(c,">",a,">",b)