Thông tin
a=[] while True: try: x=int(input()) try: a.append(x) except ValueError: break except EOFError: break
def ktdx(s): return s==s[::-1] and len(s)>1
s=input() a=list(dict.fromkeys(s)) a.sort() for i in range (0,len(a)): print(s.count(a[i]),end="")
import sys sys.stdin=open("DD54B5.inp","r") sys.stdout=open("DD54B5.out","w")
def cmp(a, b): if a[0] < b[0] or (a[0] == b[0] and a[1]>b[1]): return -1 elif a[0] == b[0] and a[1] == b[1]: return 0 else: return 1 import functools n=int(input()) a=[] for _ in range (n): x, y=map(int,input().split()) a.append((x, y)) a.sort(key=functools.cmptokey(cmp)) i=0 while i < len(a) - 1: if a[i][0] == a[i+1][0]: p=a[i] a.pop(i) a.append(p) else: i+=1 for x, y in a: print(x, y)