✅ 정답 공개
class Student:
def __init__(self, name, score):
self.name=name; self.score=score
def __lt__(self, other):
return self.score < other.score
def __repr__(self):
return f'{self.name}:{self.score}'
students=[]
while True:
line=input().strip()
if line=='END': break
name,score=line.split()
students.append(Student(name,int(score)))
for s in sorted(students):
print(s)