Let w be a string consisting of lowercase letters. We will call w _beautiful_ if the following condition is satisfied:    * Each lowercase letter of the English alphabet occurs even number of times in w.  You are given the string w. Determine if w is beautiful.
w=input()
x=dict()
for i in range(len(w)):
    if w[i] in x:
        x[w[i]]+=1
    else:
        x[w[i]]=1

for idx in x:
    if x[idx]!=2:
        print("No")
        exit()
print("Yes")
w=input()
x=dict()
for i in range(len(w)):
    if w[i] in x:
        x[w[i]]+=1
    else:
        x[w[i]]=1

for idx in x:
    if x[idx]%2!=0:
        print("No")
        exit()
print("Yes")