AtCoder Beginner Contest 044 - Beautiful Strings

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.

-----Constraints-----
 - 1 \leq |w| \leq 100
 - w consists of lowercase letters (a-z).

-----Input-----
The input is given from Standard Input in the following format:
w

-----Output-----
Print Yes if w is beautiful. Print No otherwise.

-----Sample Input-----
abaccaba

-----Sample Output-----
Yes

a occurs four times, b occurs twice, c occurs twice and the other letters occur zero times.

Difficulty: EASY

Starter code:

Solutions:
w = input()
s = set(list(w))
for x in s:
	if w.count(x) % 2 != 0:
		print('No')
		exit()
print('Yes')


w = input()
print('Yes' if all((w.count(s) % 2 == 0 for s in set(w))) else 'No')


w = input()
for ch in w:
	if w.count(ch) % 2 != 0:
		print('No')
		exit()
print('Yes')


S = input()
for x in set(S):
	if S.count(x) % 2:
		print('No')
		exit()
print('Yes')


import collections
import sys
a = input()
b = []
for i in a:
	b.append(i)
b.sort()
c = collections.Counter(b)
c = list(c.values())
for i in range(len(c)):
	if int(c[i]) % 2 == 0:
		q = 0
	else:
		q = 1
		print('No')
		return
print('Yes')


W = input()
ans = 'Yes'
if len(W) % 2 == 0:
	W_ele = set([w for w in W])
	for w in W_ele:
		if W.count(w) % 2 == 1:
			ans = 'No'
else:
	ans = 'No'
print(ans)


from collections import Counter
W = input()
C = Counter(W)
for v in list(C.values()):
	if v % 2:
		print('No')
		return
print('Yes')


w = input()
D = {}
for i in w:
	if i not in D:
		D[i] = 0
	D[i] += 1
for i in D:
	if D[i] % 2 == 1:
		print('No')
		break
else:
	print('Yes')


w = input()
w_set = set(w)
d = {}
for i in w_set:
	d[i] = 0
for i in w:
	d[i] += 1
for i in d.values():
	if i % 2 != 0:
		print('No')
		break
else:
	print('Yes')


s = input()
c = 0
for i in range(len(s)):
	if s.count(s[i]) % 2 != 0:
		c = 1
print('Yes' if c != 1 else 'No')


s = input()
d = {}
for i in range(len(s)):
	if s[i] in d:
		d[s[i]] += 1
	else:
		d[s[i]] = 1
for v in d.values():
	if v % 2:
		print('No')
		return
print('Yes')


data = input()
print('Yes' if all([data.count(i) % 2 == 0 for i in set(data)]) else 'No')


s = list(input())
flag = 'Yes'
for v in s:
	if s.count(v) % 2 != 0:
		flag = 'No'
print(flag)


w = input()
r = 'Yes'
for c in w:
	if w.count(c) % 2 != 0:
		r = 'No'
		break
print(r)


w = input()
arr = []
for i in set(w):
	arr.append(w.count(i) % 2 == 0)
print('Yes' if all(arr) else 'No')


from collections import Counter
w = input()
c = Counter(w)
ans = True
for v in c.values():
	if v % 2 == 1:
		ans = False
print('Yes' if ans == True else 'No')


import collections
w = list(str(input()))
l = collections.Counter(w)
s = set(w)
for i in s:
	if int(l[i]) % 2 != 0:
		print('No')
		break
else:
	print('Yes')


import sys
input = sys.stdin.readline

def main():
	S = input().rstrip()
	s_dict = {}
	for s in S:
		if s not in s_dict:
			tmp = {s: 1}
			s_dict.update(tmp)
		else:
			count = s_dict[s]
			count += 1
			s_dict[s] = count
	for (i, v) in s_dict.items():
		if v % 2 != 0:
			print('No')
			return
		else:
			continue
	print('Yes')

def __starting_point():
	main()
__starting_point()


w = input()
dic = {}
for c in w:
	if c not in dic:
		dic[c] = 1
	else:
		dic[c] += 1
for key in dic:
	if dic[key] % 2 != 0:
		print('No')
		return
print('Yes')


w = input()
for i in w:
	if w.count(i) % 2 == 1:
		exit(print('No'))
print('Yes')


w = input()
print('YNeos'[sum((w.count(c) % 2 for c in w)) != 0::2])


N = input()
for i in N:
	if N.count(i) % 2 == 0:
		pass
	else:
		print('No')
		exit()
print('Yes')


S = input()
P = set()
for s in S:
	if s not in P and S.count(s) % 2 != 0:
		print('No')
		return
	P.add(s)
print('Yes')


import collections
w = list(input())
cnt = collections.Counter(w)
ans = 'Yes'
for v in list(cnt.values()):
	if v % 2 != 0:
		ans = 'No'
		break
print(ans)


s = input()
print('Yes' if all([s.count(char) % 2 == 0 for char in s]) else 'No')


s = [*input()]
print('NYoe s'[all([1 if s.count(i) % 2 == 0 else 0 for i in set(s)])::2])


w = input()
l = [chr(ord('a') + i) for i in range(26)]
for i in l:
	if w.count(i) % 2 != 0:
		print('No')
		return
print('Yes')


w = input()
ans = True
for i in w:
	cnt = 0
	for j in w:
		if i == j:
			cnt += 1
	if cnt % 2 != 0:
		ans = False
		break
if ans:
	print('Yes')
else:
	print('No')


s = input()
r = 'Yes'
for w in s:
	if s.count(w) % 2 == 1:
		r = 'No'
		break
print(r)


s = list(input())
if all((s.count(x) % 2 == 0 for x in set(s))):
	print('Yes')
else:
	print('No')


w = input()
ans = 'Yes'
if len(w) % 2 == 1:
	ans = 'No'
else:
	s = sorted(w)
	count = 1
	for i in range(1, len(s)):
		if s[i] == s[i - 1]:
			count += 1
		else:
			if count % 2 == 1:
				ans = 'No'
				break
			count = 1
print(ans)


a = input()
for x in set(a):
	if a.count(x) & 1:
		print('No')
		exit()
print('Yes')


w = input()
di = {}
for i in w:
	if i in di:
		di[i] += 1
	else:
		di[i] = 1
for i in di.values():
	if i & 1:
		print('No')
		return
print('Yes')


w = input()
d = {}
for i in range(len(w)):
	if w[i] not in list(d.keys()):
		d[w[i]] = 1
	else:
		d[w[i]] += 1
for v in list(d.values()):
	if v % 2 != 0:
		print('No')
		return
print('Yes')


import sys
import string
w = input()
a_z = string.ascii_letters
for i in a_z:
	if w.count(i) & 1:
		print('No')
		return
print('Yes')


w = list(input())
for i in set(w):
	if w.count(i) % 2 == 1:
		print('No')
		exit()
else:
	print('Yes')


w = input()
l = [0 for _ in range(26)]
Flag = True
for i in w:
	num = ord(i) - 97
	l[num] += 1
for i in l:
	if i % 2 == 1:
		Flag = False
if Flag:
	print('Yes')
else:
	print('No')


w = input()
print('No' if sum((w.count(c) % 2 for c in set(w))) else 'Yes')


w = input()
a = 'abcdefghijklmnopqrstuvwxyz'
b = 0
for i in range(26):
	if w.count(a[i]) % 2 == 0:
		b += 0
	else:
		b += 1
print('Yes' if b == 0 else 'No')


w = list(input())
x = list(set(w))
for i in x:
	y = w.count(i)
	if y % 2 != 0:
		print('No')
		return
print('Yes')


from collections import Counter
print('Yes' if all((v % 2 == 0 for v in Counter(input()).values())) else 'No')


s = input()
ss = set(s)
l = [s.count(c) % 2 for c in ss]
print('No' if sum(l) else 'Yes')


s = input()
flag = [0] * 26
for i in range(len(s)):
	flag[ord(s[i]) - 97] += 1
res = 'Yes'
for i in range(26):
	if flag[i] % 2 == 1:
		res = 'No'
print(res)


w = input()
w_set = set(w)
d = {}
for i in w_set:
	d[i] = 0
for i in w:
	d[i] += 1
for i in d.values():
	if i % 2 != 0:
		print('No')
		return
print('Yes')


w = input()
s = set(list(w))
for item in s:
	if w.count(item) % 2 != 0:
		print('No')
		return
print('Yes')


w = input()
for i in range(len(w)):
	if w.count(w[i]) % 2 != 0:
		print('No')
		exit()
print('Yes')


s = input()
f = True
for i in set(s):
	if s.count(i) % 2:
		f = False
print('Yes' if f else 'No')


s = input()
print('NYoe s'[all((s.count(i) % 2 == 0 for i in s))::2])


s = input()
print('YNeos'[any((s.count(t) % 2 for t in s))::2])


s = input()
c = [0] * 26
f = 0
for i in s:
	c[ord(i) - 97] += 1
for i in c:
	f += i % 2
print('YNeos'[f > 0::2])


a = input()
for i in a:
	if a.count(i) % 2 == 1:
		print('No')
		return
print('Yes')


w = input()
for i in w:
	if w.count(i) % 2 != 0:
		print('No')
		break
else:
	print('Yes')


w = input()
ans = 'Yes'
for ch in w:
	if w.count(ch) % 2:
		ans = 'No'
		break
print(ans)


s = input()
s = sorted(s)
t = s[::2]
if len(s) % 2 == 0 and s == sorted(t * 2):
	print('Yes')
else:
	print('No')


W = input()
print('Yes' if all((W.count(w) % 2 == 0 for w in W)) else 'No')


import sys
import copy
import math
import itertools
import numpy as np
w = input()
for i in 'abcdefghijklmnopqrstuvwxyz':
	if w.count(i) % 2 == 1:
		print('No')
		return
print('Yes')


import collections
w = str(input())
x = collections.Counter(w)
n = 0
for i in list(x.values()):
	if i % 2 == 0:
		n += 1
		continue
if n == len(list(x.values())):
	print('Yes')
else:
	print('No')


import string
w = list(map(str, input()))
ans = ''
alp = list(map(str, string.ascii_lowercase))
for char in alp:
	if w.count(char) % 2 == 0:
		ans = 'Yes'
	else:
		ans = 'No'
		break
print(ans)


s = 0
for c in input():
	s ^= 1 << ord(c) - 97
print(['Yes', 'No'][s > 0])


a = input()
b = set(a)
for i in b:
	if a.count(i) % 2 != 0:
		print('No')
		return
print('Yes')


w = input()
cnt = 0
for i in set(w):
	if w.count(i) % 2 != 0:
		cnt += 1
print('Yes' if cnt == 0 else 'No')


S = input()
if all([S.count(i) % 2 == 0 for i in S]):
	print('Yes')
else:
	print('No')


s = input()
al = 'abcdefghijklmnopqrstuvwxyz'
f = True
for e in al:
	if s.count(e) % 2 != 0:
		f = False
		break
print('Yes' if f else 'No')


w = input()
ans = 'Yes'
for str in w:
	if w.count(str) % 2 != 0:
		ans = 'No'
		break
print(ans)


s = input()
for i in set(s):
	if s.count(i) % 2 != 0:
		print('No')
		exit()
print('Yes')


w = input()
while len(w) > 0:
	a = w[0]
	if w.count(a) % 2 != 0:
		print('No')
		return
	w = w.replace(a, '')
print('Yes')


w = input()
import collections as c
counts = c.Counter(w)
if all((elem % 2 == 0 for elem in counts.values())):
	print('Yes')
else:
	print('No')


w = input()
d = {c: w.count(c) for c in w}
print('Yes' if all((d[k] % 2 == 0 for k in d)) else 'No')


W = input()
for i in range(97, 97 + 26 + 1):
	if W.count(chr(i)) % 2 != 0:
		print('No')
		exit()
print('Yes')


S = input()
ans = 'Yes'
for c in S:
	if S.count(c) % 2 != 0:
		ans = 'No'
print(ans)


import collections as c
print('NYoe s'[all([1 if i % 2 == 0 else 0 for i in c.Counter(input()).values()])::2])


w = sorted(input())
total = False
if len(w) == 1:
	total = True
	print('No')
else:
	for i in range(0, len(w), 2):
		if w[i] != w[i + 1]:
			print('No')
			total = True
			break
if total == False:
	print('Yes')


w = list(input())
s = set(w)
for i in s:
	if w.count(i) % 2 != 0:
		print('No')
		break
else:
	print('Yes')


w = input()
print('YNeos'[any(map(lambda c: w.count(c) % 2, set(w)))::2])


w = input()
x = set(w)
y = []
for i in x:
	y.append(w.count(i))
for j in y:
	if j % 2 == 0:
		continue
	else:
		print('No')
		return
print('Yes')


w = input()
a = 0
for i in range(97, 124):
	cnt = 0
	for j in w:
		if j == chr(i):
			cnt += 1
	if cnt % 2 != 0:
		print('No')
		break
	else:
		a += 1
		if a == 27:
			print('Yes')
			break


w = list(input())
for c in w:
	if w.count(c) % 2:
		print('No')
		exit()
print('Yes')


w = list(input())
ans = 'Yes'
for i in set(w):
	if w.count(i) % 2 != 0:
		ans = 'No'
print(ans)


s = input()
c = 0
for i in s:
	if s.count(i) % 2 != 0:
		c = 1
print('YNeos'[c::2])


w = list(input())
for i in range(len(w)):
	if w.count(w[i]) % 2 == 1:
		print('No')
		exit()
print('Yes')


from collections import Counter
print('YNeos'[any([j % 2 != 0 for (i, j) in Counter(input()).items()])::2])


w = list(input())
if all((w.count(w[i]) % 2 == 0 for i in range(len(w)))):
	print('Yes')
else:
	print('No')


from collections import Counter
w = Counter([c for c in input()])
if all([v % 2 == 0 for (k, v) in w.items()]):
	print('Yes')
else:
	print('No')


s = list(input())
print(['No', 'Yes'][all([1 if s.count(i) % 2 == 0 else 0 for i in set(s)])])


s = input()
for k in s:
	if s.count(k) % 2 != 0:
		print('No')
		break
else:
	print('Yes')


from collections import Counter
C = Counter(input())
print('YNeos'[any((v & 1 for v in C.values()))::2])


w = list(input())
w.sort()
cnt = 1
for i in range(len(w) - 1):
	if w[i] != w[i + 1]:
		if cnt % 2 == 1:
			print('No')
			return
		else:
			cnt = 1
	else:
		cnt += 1
if cnt % 2 == 1:
	print('No')
else:
	print('Yes')


text = input()
print('No' if any([text.count(x) & 1 for x in set(text)]) else 'Yes')


from sys import stdin
input = stdin.readline
D = {'a': 0, 'b': 1, 'c': 2, 'd': 3, 'e': 4, 'f': 5, 'g': 6, 'h': 7, 'i': 8, 'j': 9, 'k': 10, 'l': 11, 'm': 12, 'n': 13, 'o': 14, 'p': 15, 'q': 16, 'r': 17, 's': 18, 't': 19, 'u': 20, 'v': 21, 'w': 22, 'x': 23, 'y': 24, 'z': 25}
W = list(input().strip())
T = [0] * 26
for w in W:
	T[D[w]] += 1
b = True
for i in range(26):
	if T[i] % 2 == 1:
		b = False
		break
if b == True:
	print('Yes')
else:
	print('No')


w = input()
cnt = [0] * 26
for c in w:
	n = ord(c) - ord('a')
	cnt[n] += 1
for temp in cnt:
	if temp % 2 != 0:
		print('No')
		return
else:
	print('Yes')


li = [0] * 26
w = input()
for i in range(len(w)):
	li[ord(w[i]) - 97] += 1
for i in range(26):
	if li[i] % 2 == 1:
		print('No')
		return
print('Yes')


w = input()
d = {}
for i in list(w):
	if i not in list(d.keys()):
		d[i] = 1
	else:
		d[i] += 1
ans = 'Yes'
for (_, v) in list(d.items()):
	if v % 2 != 0:
		ans = 'No'
		break
print(ans)


import collections
w = list(input())
c = collections.Counter(w)
if all((x % 2 == 0 for x in c.values())):
	print('Yes')
else:
	print('No')


w = input()
re = [w.count(i) for i in w]
print('Yes' if all((i % 2 == 0 for i in re)) else 'No')


w = input()
for c in w:
	if w.count(c) & 1:
		print('No')
		exit()
print('Yes')


w = list(input())
for x in w:
	key = w.count(x)
	if key % 2 != 0:
		print('No')
		exit()
print('Yes')


w = input()
for s in w:
	if w.count(s) % 2:
		print('No')
		break
else:
	print('Yes')


w = input()
if all((w.count(chr(ord('a') + i)) % 2 == 0 for i in range(26))):
	print('Yes')
else:
	print('No')


w = str(input())
data1 = []
for i in range(len(w)):
	data1.append(w[i])
data2 = []
for i in range(len(w)):
	if not w[i] in data2:
		data2.append(w[i])
error = 0
for x in data2:
	if data1.count(x) % 2 != 0:
		error += 1
		break
if error == 0:
	print('Yes')
else:
	print('No')


w = input()
print(['Yes', 'No'][any((w.count(c) % 2 for c in set(w)))])


w = input()
f = True
for i in w:
	c = 0
	for k in w:
		if i == k:
			c += 1
	if c % 2 != 0:
		f = False
if not f:
	print('No')
else:
	print('Yes')


n = list(input())
for i in n:
	if n.count(i) % 2 != 0:
		print('No')
		exit()
print('Yes')


l = 'abcdefghijklmnopqrstuvwxyz'
w = input()
print('YNeos'[sum([w.count(x) % 2 for x in l]) != 0::2])


w = input()
if any([w.count(i) % 2 for i in set(w)]):
	print('No')
else:
	print('Yes')


s = input()
for i in range(len(s)):
	if s.count(s[i]) % 2 != 0:
		print('No')
		return
print('Yes')


import math
from datetime import date

def main():
	s = input()
	a = [0 for i in range(26)]
	for c in s:
		a[ord(c) - ord('a')] += 1
	ok = 'True'
	for i in range(26):
		if a[i] % 2 == 1:
			ok = 'False'
	if ok == 'True':
		print('Yes')
	else:
		print('No')
main()


w = input()
from collections import Counter
wc = Counter(w)
for c in wc.values():
	if c % 2 == 1:
		print('No')
		break
else:
	print('Yes')


w = input()
w_list = [a for a in w]
w_set = set(w_list)
ans = 'Yes'
for i in w_set:
	if w_list.count(i) % 2 != 0:
		ans = 'No'
		break
print(ans)


w = input()
s = {w.count(c) for c in set(w)}
print('YNeos'[any((i % 2 for i in s))::2])


S = list(input())
cun = 0
ss = set()
for i in S:
	ss.add(i)
for i in ss:
	cun = 0
	for p in range(len(S)):
		if i == S[p]:
			cun += 1
	if cun % 2 != 0:
		print('No')
		return
print('Yes')


import collections
S = list(input())
D = collections.Counter(S)
ans = 'Yes'
for v in D.values():
	if v % 2 != 0:
		ans = 'No'
		break
print(ans)


w = input()
print('YNeos'[sum(map(lambda x: w.count(x) % 2, w)) != 0::2])


i = input()
print('YNeos'[any((i.count(x) % 2 for x in i))::2])


w = input()
print('No' if any((w.count(chr(i)) % 2 for i in range(ord('a'), ord('z') + 1))) else 'Yes')


s = input()
ss = set(s)
ans = 'Yes'
for sss in ss:
	if s.count(sss) % 2 == 1:
		ans = 'No'
print(ans)


ws = list(input())
ws.sort()
print('Yes' if ws[::2] == ws[1::2] else 'No')


from collections import Counter as CC
w = list(input())
D = CC(w)
for i in D:
	if D[i] % 2 != 0:
		print('No')
		break
else:
	print('Yes')


w = input()
for c in w:
	if w.count(c) % 2:
		print('No')
		quit()
print('Yes')


S = input()
for c in S:
	if S.count(c) % 2:
		print('No')
		quit()
print('Yes')


w = input()
a = ord('a')
z = ord('z')
for i in range(a, z + 1):
	x = w.count(chr(i))
	if x % 2 == 1:
		print('No')
		return
print('Yes')


data = ['a', 'b', 'c', 'd', 'e', 'f', 'g', 'h', 'i', 'j', 'k', 'l', 'm', 'n', 'o', 'p', 'q', 'r', 's', 't', 'u', 'v', 'w', 'x', 'y', 'z']
w = input()
for i in range(26):
	if w.count(data[i]) % 2 != 0:
		print('No')
		return
print('Yes')


w = list(input())
if all((w.count(i) % 2 == 0 for i in set(w))):
	print('Yes')
else:
	print('No')


w = sorted(list(input())) + ['_']
s = 'Yes'
for i in range(1, len(w), 2):
	if w[i] != w[i - 1]:
		s = 'No'
print(s)


w = input()
print('Yes' if not sum([w.count(i) % 2 for i in list(set(w))]) else 'No')


w = input()
ans = 1
for wi in w:
	ans ^= ord(wi)
if ans == 1:
	print('Yes')
else:
	print('No')


w = input()
ans = 'Yes'
for i in range(26):
	if w.count(chr(ord('a') + i)) % 2 == 1:
		ans = 'No'
		break
print(ans)


w = input()
ans = 1
for i in w:
	if w.count(i) % 2 == 1:
		ans = 0
print('Yes' if ans == 1 else 'No')


w = input()
wl = []
for i in range(len(w)):
	wl.append(w[i])
wl.sort()
a = 1
judge = 1
if len(w) % 2 == 0:
	for n in range(len(w) - 1):
		if wl[a + n] == wl[a + n - 1]:
			judge += 1
		elif judge % 2 != 0:
			print('No')
			return
		else:
			judge = 1
		if n == len(w) - 2:
			if judge % 2 == 0:
				print('Yes')
			else:
				print('No')
else:
	print('No')


s = input()
for a in s:
	if s.count(a) % 2 != 0:
		print('No')
		exit()
print('Yes')


w = input()
for i in w:
	if w.count(i) % 2 == 0:
		continue
	else:
		print('No')
		exit()
print('Yes')


s = input()
w = list(set(s))
b = 'Yes'
for i in w:
	if s.count(i) % 2 != 0:
		b = 'No'
print(b)


from collections import Counter
w = input()
d = Counter(w)
if sum(d.values()) % 2 == 0 and len([c for c in d.values() if c % 2 == 0]) == len(d):
	print('Yes')
else:
	print('No')


import collections
w = list(input())
wc = collections.Counter(w)
num = 0
for (i, x) in enumerate(wc):
	if wc[x] % 2 == 0:
		num += 1
if num == len(wc):
	print('Yes')
else:
	print('No')


from collections import deque
d = deque()
for w in input():
	d.remove(w) if w in d else d.append(w)
print(['Yes', 'No'][len(d) != 0])


a = list(input())
a.sort()
b = list(set(a))
for i in range(len(b)):
	if a.count(b[i]) % 2 == 0:
		continue
	else:
		print('No')
		return
print('Yes')


w = [w for w in input()]
w1 = sorted(w)
w2 = sorted(w1[::2] * 2)
print('Yes' if w1 == w2 else 'No')


s = input()
print('YNeos'[sum((s.count(c) % 2 for c in set(s))) > 0::2])


w = list(input())
w.sort()
print('Yes' if w[::2] == w[1::2] else 'No')


w = input()
for c in set(w):
	if w.count(c) % 2 != 0:
		print('No')
		break
else:
	print('Yes')


w = input()
for l in w:
	if w.count(l) % 2 == 1:
		print('No')
		break
else:
	print('Yes')


w = input()
S = set(w)
f = all((w.count(s) % 2 == 0 for s in S))
[print('Yes') if f == True else print('No')]


w = input()
a = list('abcdefghijklmnopqrstuvwxyz')
for A in a:
	if w.count(A) % 2 == 1:
		print('No')
		return
print('Yes')


w = input()
for i in range(len(w)):
	if w.count(w[i]) % 2 == 1:
		print('No')
		return
print('Yes')


w = input()
print('Yes') if sum([int(w.count(chr(x)) % 2) for x in range(97, 97 + 26)]) == 0 else print('No')


w = str(input())
L = []
for i in w:
	L.append(i)
if len(L) % 2 == 1:
	print('No')
	return
L.sort()
for j in range(0, len(L), 2):
	if L[j] != L[j + 1]:
		print('No')
		return
print('Yes')


import collections
w = list(input())
c = collections.Counter(w)
tmp = list(c.values())
for i in tmp:
	if i % 2 == 1:
		print('No')
		return
print('Yes')


from collections import Counter
w = input()
c = Counter(w)
for i in c.values():
	if i % 2 != 0:
		print('No')
		return
print('Yes')


W = input()
s = list(set(W))
l = len(s)
for i in range(l):
	for a in s[i]:
		if W.count(a) % 2 == 1:
			print('No')
			return
		else:
			break
print('Yes')


w = input()
ans = 'Yes'
for i in set(w):
	if w.count(i) % 2 == 1:
		ans = 'No'
		break
print(ans)


word = input()
wset = set(word)
a = 'Yes'
for w in wset:
	if word.count(w) % 2 != 0:
		a = 'No'
print(a)


from collections import Counter
print('No' if 1 in [n % 2 for n in Counter(input()).values()] else 'Yes')


w = input()
a = 0
for wi in w:
	a ^= ord(wi)
if a == 0:
	print('Yes')
else:
	print('No')


s = input()
a = set(s)
for i in a:
	if s.count(i) % 2 == 1:
		print('No')
		quit()
print('Yes')


def main():
	w = str(input())
	wl = []
	for ww in w:
		wl.append(ww)
	if len(w) % 2 != 0:
		ans = 'No'
	else:
		ans = 'Yes'
		for val in wl:
			if wl.count(val) % 2 == 0:
				pass
			else:
				ans = 'No'
				break
	print(ans)

def __starting_point():
	main()
__starting_point()


s = input()
print('YNeos'[any((s.count(i) % 2 for i in s))::2])


w = input()
if not any([w.count(s) % 2 for s in set(w)]):
	print('Yes')
else:
	print('No')


import sys
S = input()
for i in S:
	if S.count(i) % 2:
		print('No')
		sys.exit()
print('Yes')


ans = True
w = input()
for c in w:
	ans &= w.count(c) % 2 == 0
print('Yes' if ans else 'No')


S = input()
for s in S:
	if S.count(s) % 2 == 1:
		print('No')
		break
else:
	print('Yes')


s = list(input())
ans = 'Yes'
for i in range(len(s)):
	if s.count(s[i]) % 2 != 0:
		ans = 'No'
print(ans)


e = list(input())
ans = 'Yes'
for i in e:
	if e.count(i) % 2 != 0:
		ans = 'No'
print(ans)


w = list(input())
a = list(set(w))
for i in a:
	if w.count(i) % 2:
		print('No')
		exit()
print('Yes')


w = input()
if any((w.count(t) % 2 for t in w)) == 0:
	print('Yes')
else:
	print('No')


from collections import Counter

def answer(w: str) -> str:
	counts = list(Counter(w).values())
	for count in counts:
		if count % 2 == 1:
			return 'No'
	return 'Yes'

def main():
	w = input()
	print(answer(w))

def __starting_point():
	main()
__starting_point()


W = input()
exist_list = []
ans = 'No'
for w in W:
	if w in exist_list:
		continue
	if W.count(w) % 2 != 0:
		break
	exist_list.append(w)
else:
	ans = 'Yes'
print(ans)


from collections import Counter
print(('No', 'Yes')[all((i % 2 == 0 for i in Counter(input()).values()))])


s = list(input())
for i in s:
	if s.count(i) % 2 == 1:
		print('No')
		exit()
print('Yes')


w = input()
char_map = {c: 0 for c in w}
for c in w:
	char_map[c] += 1
flag = True
for val in list(char_map.values()):
	if val % 2 != 0:
		flag = False
		break
print('Yes' if flag else 'No')


a = input()
c = []
for i in a:
	c.append(i)
se = set(c)
c.sort()
count = 1
res = []
for i in range(len(c) - 1):
	if c[i] == c[i + 1]:
		count += 1
	else:
		if count % 2 == 0:
			res.append(c[i])
		count = 1
if count % 2 == 0:
	res.append(c[-1])
if len(res) == len(se):
	print('Yes')
else:
	print('No')


from collections import Counter
w = input()
w = Counter(w)
result = 'Yes'
for v in w.values():
	if v % 2 == 0:
		continue
	else:
		result = 'No'
		break
print(result)


import sys
w = input()
count = {}
for i in w:
	count.setdefault(i, 0)
	count[i] += 1
for j in list(count.values()):
	if j % 2 != 0:
		print('No')
		return
print('Yes')


import collections
s = input()
l = collections.Counter(s)
for i in l.values():
	if i % 2 != 0:
		print('No')
		return
print('Yes')


a = input()
ans = 'Yes'
for i in range(len(a)):
	if a.count(a[i]) % 2 == 1:
		ans = 'No'
		break
print(ans)


w = input()
sw = set(w)
for s in sw:
	if w.count(s) % 2 != 0:
		print('No')
		exit(0)
print('Yes')


a = input()
dic = {}
for i in a:
	if i in dic:
		dic[i] += 1
	else:
		dic[i] = 1
for i in dic:
	if dic[i] % 2 != 0:
		print('No')
		return
print('Yes')


w = input()
alpha = 'abcdefghijklmnopqrstuvwxyz'
check = True
for a in alpha:
	if w.count(a) % 2 == 1:
		check = False
print('Yes' if check else 'No')


w = input()
S = 'abcdefghijklmnopqrstuvwxyz'
flag = True
for c in S:
	if w.count(c) % 2 == 1:
		flag = False
if flag:
	print('Yes')
else:
	print('No')


W = input()
for w in W:
	if W.count(w) & 1:
		print('No')
		break
else:
	print('Yes')


w = input()
ws = list(set(w))
ans = 'Yes'
for i in ws:
	if w.count(i) % 2 == 1:
		ans = 'No'
print(ans)


s = input()
t = list(set(s))
ans = 'Yes'
for i in t:
	if s.count(i) % 2 > 0:
		ans = 'No'
print(ans)


s = input()
f = True
for a in s:
	if s.count(a) % 2 != 0:
		f = False
print('Yes' if f else 'No')


s = str(input())
temp = 'a'
flag = 0
for i in range(1, 27):
	if s.count(temp) % 2 == 1:
		flag = 1
		break
	temp = chr(ord(temp) + 1)
if flag == 0:
	print('Yes')
else:
	print('No')


n = input()
dic = 'abcdefghijklmnopqrstuvwxyz'
for i in range(26):
	if n.count(str(dic[i])) % 2 != 0:
		print('No')
		return
print('Yes')


w = input()
moji = set(w)
for m in moji:
	if w.count(m) % 2 == 1:
		print('No')
		exit()
print('Yes')


W = input()
print('Yes' if all([W.count(x) % 2 == 0 for x in set(W)]) else 'No')


s = 0
for c in input():
	s ^= 1 << ord(c)
print('YNeos'[s > 0::2])


s = input()
di = {}
for c in s:
	di[c] = 0
for c in s:
	di[c] += 1
is_beautiful = True
for c in s:
	if di[c] % 2 == 1:
		is_beautiful = False
print('Yes' if is_beautiful else 'No')


w = input()
asci = 0
for i in w:
	asci = asci ^ ord(i)
if asci == 0:
	print('Yes')
else:
	print('No')


S = input()
print('Yes' if all([S.count(e) % 2 == 0 for e in set(S)]) else 'No')


w = input()
bea = True
elements = set(list(w))
for element in elements:
	if w.count(element) % 2 != 0:
		print('No')
		bea = False
		break
if bea:
	print('Yes')