eolymp
bolt
Try our new interface for solving problems
published at 1/13/24, 2:31:01 pm

any solution?

published at 2/20/24, 12:53:16 pm

a = input()

b = input()

a1 = {} b1 = {}

for i in a:

a1[i] = a1.get(i, 0) + 1

for i in b:

b1[i] = b1.get(i, 0) + 1

for i, c in b1.items():

if i not in a1 or a1[i] < c:

    print("No")

    exit()

print("Ok")