Problem:


Score : 200 points

Problem Statement

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 1

abaccaba

Sample Output 1

Yes

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

Sample Input 2

hthth

Sample Output 2

No



Sample input:
abaccaba


Sample output:
Yes

Submission status: Accepted

Solution code:
word = input()
judge = []
ans = 0
for i in range(len(word)):
    judge.append(word.count(word[i]))
#print(judge)
for i in range(len(judge)):
    if judge[i] %2 == 0:
        ans += 0
    else:
        ans += 1
if ans == 0:
    print("Yes")
else:
    print("No")

Submission status: Accepted

Solution code:
from collections import Counter
C = [1 for i in Counter(input()).values() if i % 2 == 1]
print('Yes' if C == [] else 'No')

Submission status: Accepted

Solution code:
from collections import Counter

W = input()
C = Counter(W)
if all(v % 2 == 0 for v in C.values()):
    print("Yes")
else:
    print("No")

Submission status: Accepted

Solution code:
w = input()
for i in range(ord('a'), ord('z')):
  if(w.count(chr(i))%2!=0):
    print('No')
    exit()
print('Yes')

Submission status: Accepted

Solution code:
def abc():
    from itertools import groupby
    s = sorted(input().rstrip())
    for k, g in groupby(s):
        if len(list(g)) % 2:
            print('No')
            return
    print('Yes')


abc()

Submission status: Accepted

Solution code:
w=input()
cnt=[]
ans=0
for i in range(len(w)):
  cnt.append(w.count(w[i]))
for j in range(len(cnt)):
  if cnt[j]%2==0:
    continue
  else:
    ans+=1
if ans==0:
  print('Yes')
else:
  print('No')

Submission status: Accepted

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

Submission status: Accepted

Solution code:
w = input()
from collections import defaultdict
dic = defaultdict(lambda : 0)
for i in w:
    dic[i] += 1
counter = 0
for key in dic.keys():
    if dic[key] % 2 != 0:
        counter = -1
        break
if counter == 0:
    print('Yes')
else:
    print('No')

Submission status: Accepted

Solution code:
from collections import Counter
w = [c for c in input()]
for cnt in Counter(w).values():
    if cnt%2 == 1:
        print('No')
        exit()
print('Yes')

Submission status: Accepted

Solution code:
w = input()
flg = True
for i in list("abcdefghijklmnopqrstuvwxyz"):
    if w.count(i) % 2 != 0:
        flg = False

if flg:
    print('Yes')
else:
    print('No')

Submission status: Accepted

Solution code:
w=sorted(input())
if len(w)%2==1:
    print('No')
else:
    while len(w)>=2:
        if w.pop(0)!=w.pop(0):
            print('No')
            exit()
    print('Yes')

Submission status: Accepted

Solution code:
w = input()

from collections import Counter
C = Counter()
for w_i in w:
  C[w_i]=(C[w_i]+1)%2
if sum(C.values())>0:
  print("No")
else:
  print("Yes")

Submission status: Accepted

Solution code:
S = input()
counter = []
for i in range(0, 26):
	counter.append(0)
for i in range(0, len(S)):
	counter[ord(S[i])-97] += 1
ans = 'Yes'
for i in range(0, 26):
	if counter[i]%2 != 0:
		ans = 'No'
		break
print(ans)

Submission status: Accepted

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

Submission status: Accepted

Solution code:
w = list(input())
s = set(w)
s = list(s)
ans = 'Yes'

for i in range(len(s)):
  if w.count(s[i]) % 2 == 1:
    ans = 'No'
    break

print(ans)

Submission status: Accepted

Solution code:
from collections import defaultdict

di = defaultdict(lambda :0)
S = input()
for c in S:
    di[c] += 1
flag = True
for v in di.values():
    if v %2 == 1:
        flag = False
        break

if flag:
    print("Yes")
else:
    print("No")

Submission status: Accepted

Solution code:
s = input()
from collections import Counter
c = Counter(s)

bl = True
for v in c.values():
  if v&1:
    bl = False
    
answer = 'Yes' if bl else 'No'
print(answer)

Submission status: Accepted

Solution code:
from collections import Counter
from collections import deque
from functools import reduce
from pprint import pprint
import bisect
import copy
import fractions
import itertools
import math
import queue
import random
import sys
import time
sys.setrecursionlimit(10**7)
INF = 10 ** 18
MOD = 10 ** 9 + 7
def LI(): return [int(x) for x in sys.stdin.readline().split()]
def LF(): return [float(x) for x in sys.stdin.readline().split()]
def LS(): return sys.stdin.readline().split()
def MI(): return map(int, sys.stdin.readline().split())
def II(): return int(sys.stdin.readline())
def IS(): return input()
def C(x): return Counter(x)
def GCD_LIST(numbers): return reduce(fractions.gcd, numbers)
def LCM_LIST(numbers): return reduce(LCM, numbers)
def LCM(m, n): return (m * n // fractions.gcd(m, n))


w = C(input())
for cnt in w.values():
    if cnt % 2 == 1:
        print("No")
        exit()
print("Yes")

Submission status: Accepted

Solution code:
# -*- coding: utf-8 -*-

w = input()

ans = 0

w1 = list(set(list(w)))

for i in range(len(w1)):
    if w.count(w1[i]) % 2 == 1:
        ans += 1

print('Yes' if ans == 0 else 'No')

Submission status: Accepted

Solution code:
w = input()

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

Submission status: Accepted

Solution code:
W = input()

w_list = {}

for w in W:
	if w in w_list:
		w_list[w] += 1
	else:
		w_list[w] = 1

ans = 'Yes'

for w in w_list:
	if(w_list[w] % 2 != 0):
		ans = 'No'
		break

print(ans)

Submission status: Accepted

Solution code:
w = input()
W = []
for k in w:
    W.append(k)
for i in W:
    if W.count(i) % 2:
        print('No')
        exit()

print('Yes')

Submission status: Accepted

Solution code:
string = input()
ans = True
for c in string:
    if string.count(c) % 2 != 0:
        ans = False

if ans:
    print("Yes")
else:
    print("No")

Submission status: Accepted

Solution code:

a=list(input())
a.sort()
i=0
#print(a)
while True:
    try:
        z=a[i]
        if a.count(z)%2==0:
            i=i+a.count(z)

        else:
           print("No")
           break
    except:
        print("Yes")
        break

Submission status: Accepted

Solution code:
w = input()
ans = "Yes"
for i in range(len(w)):
    if w.count(w[i]) % 2 != 0:
        ans = "No"
print(ans)

Submission status: Accepted

Solution code:
import sys

str = input()
str = sorted(str)

flag = False
for index, s in enumerate(str):
    if index+1 < len(str) and s == str[index+1]:
        flag ^= True
    else:
        if not flag:
            print("No")
            sys.exit()
        else:
            flag = False

print("Yes")

Submission status: Accepted

Solution code:
S = input()
C = {c: S.count(c) for c in S}
C = set(C.values())
C = {c % 2 == 0 for c in C}
print('Yes' if all(C) else 'No')

Submission status: Accepted

Solution code:
s = list(input())

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

Submission status: Accepted

Solution code:
s=input()
answer="Yes"
while len(s)>0:
    if s.count(s[0])%2==1:
        answer="No"
        break
    s=s.replace(s[0],"")
print(answer)

Submission status: Accepted

Solution code:
def resolve():
    w = input()
    w_sets = set()

    [w_sets.add(w[x]) for x in range(0, len(w))]

    for x in w_sets:
        if w.count(x) % 2 != 0:
            print('No')
            return

    print('Yes')


resolve()

Submission status: Accepted

Solution code:
w = list(input())
d = set(w)
for s in d:
    if w.count(s)%2 != 0:
        print("No")
        exit()
print('Yes')

Submission status: Accepted

Solution code:
w = input()

li = set(w)

ans = [w.count(i) for i in li]

for i in ans:
    if i % 2 == 1:
        print("No")
        break
else:
    print("Yes")

Submission status: Accepted

Solution code:
w = 0
codea = "a".encode()[0]
for x in input():
  w ^= 1 << (x.encode()[0] - codea)
print("No" if w!=0 else "Yes")

Submission status: Accepted

Solution code:
w = input()
from collections import Counter

ls = list(w)
c = Counter(ls)

flg = "Yes"

for i in c.values():
    if i%2==1:
        flg="No"

print(flg)

Submission status: Accepted

Solution code:
a=list(input())
b=set(a)
 
for i in b:
    c=a.count(i)
    if c%2!=0:
        print("No")
        exit()
print("Yes")

Submission status: Accepted

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

Submission status: Accepted

Solution code:
w=input()
 
n=list(set(w))
 
for i in n:
    x=w.count(i)
    if x%2!=0:
        print("No")
        exit()
 
print("Yes")

Submission status: Accepted

Solution code:
w = list(input())
ans = {}
for i in w :
    if i in ans : ans[i] += 1
    else : ans[i] = 1
count = 0
for i in ans.keys():
    if ans[i] % 2 == 0 :
        pass
    else: count += 1
if count == 0: print("Yes")
else: print("No")

Submission status: Accepted

Solution code:
from collections import defaultdict

w = input()
d = defaultdict(int)
for l in w:
    d[l] += 1
ans = True
for n in d.values():
    if n % 2 == 1:
        ans = False
print('Yes' if ans else 'No')

Submission status: Accepted

Solution code:
# your code goes here
s = input()
d = {}
flag = True
for i in s:
	if i in d:
		d[i] += 1
	else:
		d[i] = 1
	
for k in d:
	if d[k] % 2 == 1:
		flag = False
		break
if flag:	
	print("Yes")
else:
	print("No")

Submission status: Accepted

Solution code:
from collections import Counter
s=input()
c=Counter(s)
flag=0
a=list(c.values())
for i in range(len(a)):
  if a[i]%2==1:
    flag=1
    break
if flag==0:
  print("Yes")
else:
  print("No")

Submission status: Accepted

Solution code:
w=input()

n=list(set(w))

for i in n:
    x=w.count(i)
    if x%2!=0:
        print("No")
        exit()

print("Yes")

Submission status: Accepted

Solution code:
s=input()
print("Yes" if all([s.count(i)%2==0 for i in set(s)]) else "No")

Submission status: Accepted

Solution code:
l=input()
n=len(l)
ans=[]
for i in range(n):
    if l.count(l[i])%2==0:
        ans.append(0)
    else:
        ans.append(1)
        
print("Yes" if 1 not in ans else "No")

Submission status: Accepted

Solution code:
w = str(input())

al = [chr(i) for i in range(97, 97+26)]
ans = "Yes"
for a in al:
  if w.count(a)%2 == 1:
    ans = "No"
    break

print(ans)

Submission status: Accepted

Solution code:
# -*- coding: utf-8 -*-
import itertools
import sys
import math
from functools import lru_cache

# 1整数
# n = int(input())

# 空白区切り2変数
from queue import Queue
from operator import mul
from functools import reduce
from queue import Queue
from operator import mul
from functools import reduce
from functools import lru_cache

# input = sys.stdin.readline

# N個整数
# a, b, c = list(map(int, input().split()))

# 1整数
# n = int(input())

# 空白区切りリスト整数
# b = list(map(int, input().split()))

# 空白区切り文字列
# t, d = input().split()
s = list(input())
#s = s[:-1]
m = {}
for c in s:
    if c in m:
        m[c] = m[c] + 1
    else:
        m[c] = 1
# print(m)
for k in m:
    if m[k] % 2 == 1:
        print("No")
        exit(0)
print("Yes")

Submission status: Accepted

Solution code:
import collections


def main():
    w = input()
    d = collections.defaultdict(bool)

    for c in w:
        d[c] ^= True

    print('Yes' if all(v == False for v in d.values()) else 'No')


if __name__ == '__main__':
    main()

Submission status: Accepted

Solution code:
w = input()
d = dict()
for i in range(len(w)):
    c = w[i]
    count = d.get(c, 0)
    d[c] = count + 1
f = True
for k in d:
    if d[k] % 2 != 0:
        f = False
print("Yes" if f else "No")

Submission status: Accepted

Solution code:
from collections import Counter
w = input()
c = Counter(w)
print("Yes" if sum([c[k]%2 for k in c])==0 else "No")

Submission status: Accepted

Solution code:
from collections import Counter
c = Counter(input())
for v in c.values():
    if v % 2 != 0:
        print('No')
        exit()
print('Yes')

Submission status: Accepted

Solution code:
w = list(input())

store = [0 for i in range(26)]
for i in range(len(w)):
    store[ord(w[i]) - 97] += 1

for i in range(len(store)):
    store[i] = store[i] % 2

if sum(store) == 0:
    print('Yes')
else:
    print('No')

Submission status: Accepted

Solution code:
w=input()
l=dict()
for c in w:
    if c in l:
        l[c] += 1
    else:
        l[c] = 1

flag = True
for v in l.values():
    if v % 2 != 0:
        flag = False

print(("No","Yes")[flag])

Submission status: Accepted

Solution code:
w=input()
abc=["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"]
flag=True
for i in abc:
        if w.count(i)%2==1:
            flag=False
if flag:
    print("Yes")
else:
    print("No")

Submission status: Accepted

Solution code:
from collections import Counter
w = input()
w = Counter(w)
value,count = zip(*w.most_common())
count = list(count)
for i in count:
    if i%2 != 0:
        print("No")
        exit()
print("Yes")

Submission status: Accepted

Solution code:
w = list(input())
w_set = set(w)

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

Submission status: Accepted

Solution code:
a=input()
b=list(a)
ans=0
for i in b:
    if a.count(i)%2!=0:
        ans=1
if ans==0:
    print("Yes")
else:
    print("No")

Submission status: Accepted

Solution code:
import sys
input = sys.stdin.readline

S = list(input().strip())
m = {}

for v in S:
    if m.get(v) != None:
        m[v] += 1
    else:
        m[v] = 1
        
for v in m.values():
    if v % 2 != 0:
        print("No")
        exit()
        
print("Yes")

Submission status: Accepted

Solution code:
import collections
w = list(input())
flag = True
wc = collections.Counter(w)
for i in wc.values():
    if i % 2 != 0:
        print("No")
        flag =False
        break
if flag:
    print("Yes")

Submission status: Accepted

Solution code:
w = input()
alphabet_list = [chr(i) for i in range(97,97+26)]

for i in range(len(alphabet_list)):
    count = 0
    for j in w:
        if alphabet_list[i] == j:
            count += 1
    if count % 2 != 0:
        print("No")
        exit()
print("Yes")

Submission status: Accepted

Solution code:
import sys
s = list(input())

for count_s in s:
    if (int(s.count(count_s)%2) != 0) :
        print("No")
        sys.exit()

print("Yes")

Submission status: Accepted

Solution code:
from collections import Counter

w = input()
c = Counter(list(w))
isBeautiful = True
for i in c.values():
    if i % 2:
        isBeautiful = False
        break
if isBeautiful:
    print("Yes")
else:
    print("No")

Submission status: Accepted

Solution code:
w = input()
alphabet = 'abcdefghijklmnopqrstuvwxyz'
cntArr = [0]*24
isBeautiful = True
for i in range(24):
    if(w.count(alphabet[i]) %2 == 1):
        isBeautiful = False
        break
if(isBeautiful):
    print("Yes")
else:
    print("No")

Submission status: Accepted

Solution code:
from collections import Counter
s=list(str(input()))
c=Counter(s)
l=list(c.values())
flag=False
for i in range(len(l)):
    if l[i]%2!=0:
        flag=True
print("YNeos"[flag::2])

Submission status: Accepted

Solution code:
from collections import Counter

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

Submission status: Accepted

Solution code:
from collections import defaultdict

d = defaultdict(lambda: 0)
s = input().strip()
for c in s:
    d[c] += 1

ans = True
for _, v in d.items():
    if v % 2 != 0:
        ans = False
        break

print('Yes' if ans else 'No')

Submission status: Accepted

Solution code:
w  = input()
if all(w.count(i)%2==0 for i in w):
    print("Yes")
else:
    print("No")

Submission status: Accepted

Solution code:
from collections import Counter

s = input()
c = Counter(s)

for i in c.values():
    if i%2 == 1:
        print("No")
        exit()
print("Yes")

Submission status: Accepted

Solution code:
from collections import Counter

print("Yes" if all(i % 2 == 0 for i in Counter(input()).values()) else "No")

Submission status: Accepted

Solution code:
import collections
w = [c for c in input()]

c = collections.Counter(w)

for i in c.values():
  if i % 2 == 1:
    print('No')
    exit()

print('Yes')

Submission status: Accepted

Solution code:
w = str(input())
s = {}
 
for wrd in w:
  if s.get(wrd) is None:
    s[wrd] = 1
  else:
    s[wrd] += 1
 
ans = 1
for wrd in s:
  if s[wrd] %2 !=0:
    ans = 0
    break
if ans:
  print("Yes")
else:
  print("No")

Submission status: Accepted

Solution code:
import sys

w = input()
d ={}

for i in w:
    if i in d:
        d[i] += 1
    else:
        d[i] = 1

for n in d.values():
    if n % 2 != 0:
        print('No')
        sys.exit()
        
print('Yes')

Submission status: Accepted

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

Submission status: Accepted

Solution code:
w = sorted(input())
ret = 'Yes'
if len(w) % 2 == 0:
    for i in range(0, len(w)-1, 2):
        if w[i] != w[i+1]:
            ret = 'No'
            break
else:
    ret = 'No'
print(ret)

Submission status: Accepted

Solution code:
a = str(input())
s = len(a)
while s % 2 == 0:
    x = a[0:1]
    a = a.replace(x,"")
    s = len(a)
    if s == 0:
        print("Yes")
        exit()
print("No")

Submission status: Accepted

Solution code:
a = list(input())
a = sorted(a)
def count(a):
    b =[]
    for i in range(0,len(a)-2):
        if a[i] != a[i+1]:
            b.append( i+1)
    return b

b = count(a)
b.append(len(a))

for i in reversed(range(0,len(b)-1)):
    b[i+1] =b[i+1] - b[i]

d = 0
for i in range(0,len(b)):
    d = d +b[i]%2

if d ==0:
    print('Yes')
else:
    print('No')

Submission status: Accepted

Solution code:
w=sorted(input())
s={}
for i in w:
    s[i]=s.get(i,0)+1
ans='Yes'
for v in s.values():
    if v%2!=0:ans='No'
print(ans)

Submission status: Accepted

Solution code:
w=input()
l="abcdefghijklmnopqrstuvwxyz"
ans=0
for i in l:
    if w.count(i)%2==1:
        ans=1
        break
print("Yes" if ans==0 else "No")

Submission status: Accepted

Solution code:
n={c:0 for c in "abcdefghijklmnopqrstuvwxyz"}
for s in input():
    n[s] = 1 - n[s]
print("YNeos"[sum(n.values())>0::2])

Submission status: Accepted

Solution code:
w = [c for c in str(input())]

def f(w):
    set_w = list(set(w))
    for n in set_w:
        if w.count(n) % 2 == 1:
            return 'No'
            break
    return 'Yes'
print(f(w))

Submission status: Accepted

Solution code:
w=list(input())
W=list(set(w))
m=0
for i in range(len(W)):
    if w.count(W[i])%2==0:
        m+=1

if m==len(W):
    print('Yes')
else:
    print('No')

Submission status: Accepted

Solution code:
#B問題
w = input()
ww = sorted(w)
flag = True
if len(w) % 2 != 0:
    flag = False
else:
    ww = sorted(w)
    for i in range(0, len(ww), 2):
        if ww[i] != ww[i+1]:
            flag = False
        
if flag:
    print("Yes")
else:
    print("No")

Submission status: Accepted

Solution code:
#B問題
w = input()
a = w.count("a") % 2
b = w.count("b") % 2
c = w.count("c") % 2
d = w.count("d") % 2
e = w.count("e") % 2
f = w.count("f") % 2
g = w.count("g") % 2
h = w.count("h") % 2
i = w.count("i") % 2
j = w.count("j") % 2
k = w.count("k") % 2
l= w.count("l") % 2
m = w.count("m") % 2
n = w.count("n") % 2
o = w.count("o") % 2
p = w.count("p") % 2
q = w.count("q") % 2
r = w.count("r") % 2
s = w.count("s") % 2
t = w.count("t") % 2
u = w.count("u") % 2
v = w.count("v") % 2
W = w.count("w") % 2
x = w.count("x") % 2
y= w.count("y") % 2
z = w.count("z") % 2

if(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)== 0:
    print("Yes")
else:
    print("No")

Submission status: Accepted

Solution code:
import sys

w = input()
if len(w)%2!=0:
    print("No")
    sys.exit()

ww = sorted(w)
flag = True
for i in range(0,len(ww),2):
    if ww[i]!=ww[i+1]:
        flag = False
if flag:
    print("Yes")
else:
    print("No")

Submission status: Accepted

Solution code:
w = input().rstrip()
dct = {}

for c in w:
    if c in dct:
        dct[c] += 1
    else:
        dct[c] = 1

values = list(dct.values())
result = 'Yes'

for i in values:
    if i % 2 != 0:
        result = 'No'
        break

print(result)

Submission status: Accepted

Solution code:
w = input()
li = [0]*26
flag = True
for i in w:
    li[ord(i)-97]+=1
for i in li:
    if(i%2!=0):
        flag = False
if(flag):
    print('Yes')
else:
    print('No')

Submission status: Accepted

Solution code:

s=input()
flag=0
for i in list("abcdefghijklmnopqrstuvwxyz"):
  if s.count(i)%2!=0:
    flag=1
if flag == 0:
  print("Yes")
else:
  print("No")

Submission status: Accepted

Solution code:
import collections

d = collections.Counter(input())

for k, v in d.items():
    if v % 2 != 0:
        print('No')
        break
else:
    print('Yes')

Submission status: Accepted

Solution code:
a = input()
b = []
count = 0
for i in a:
  c = a.count(i)
  b.append(c)
for i in b:
  count += 1
  if i % 2 != 0:
    print("No")
    break
  elif count == len(b):
    print("Yes")

Submission status: Accepted

Solution code:
w = input()
flag_yes = True
for alph in w:
  if w.count(alph)%2 == 1:
    flag_yes = False
    break
if flag_yes == True:
  print("Yes")
else:
  print("No")

Submission status: Accepted

Solution code:
w=list(input())
s=list(set(w))
k=len(s)
b=0
for i in range(k):
   if w.count(s[b])%2!=0:
      print("No")
      break
   else:
      b+=1
if b==k:
    print("Yes")

Submission status: Accepted

Solution code:
import sys
input = sys.stdin.readline

s = input().strip()

arr = [(s.count(num)%2==0) for num in s]

print("Yes" if all(arr) else "No")

Submission status: Accepted

Solution code:

alphabets = "abcdefghijklmnopqrstuvwxyz"
judge_flag = "Yes"

words = input().rstrip()

for i in alphabets:
    if (words.count(i))%2 == 0:
        pass
    else:
        judge_flag = "No"

print(judge_flag)

Submission status: Accepted

Solution code:
w = input()
w = sorted(w)
set_w = list(set(w))

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

Submission status: Accepted

Solution code:
from collections import Counter

S = list(input())
print("No" if sum(map(lambda x:x%2,Counter(S).values())) else "Yes")

Submission status: Accepted

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

Submission status: Accepted

Solution code:
w  = input()
if all(w.count(i)%2==0 for i in w):
    print("Yes")
else:
    print("No")

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
from collections import Counter
w = input()
if len([s for s, n in Counter(w).items() if n % 2 != 0]) == 0:
    print("Yes")
else:
    print("No")

Submission status: Accepted

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

Submission status: Accepted

Solution code:
w = input()
d = {}

for c in w:
    if c in d.keys():
        d[c] += 1
    else:
        d[c] = 1

if all([x % 2== 0 for x in d.values()]):
    print('Yes')
else:
    print('No')

Submission status: Accepted

Solution code:
# ABC044B - 美しい文字列 / Beautiful Strings
s = list(input())
s_set = set(s)
for i in s_set:
    if s.count(i) % 2 != 0:
        print("No")
        break
else:
    print("Yes")

Submission status: Accepted

Solution code:
w = list(input())
ans = "Yes"
for i in w:
    if w.count(i)%2 == 1:
        ans = "No"
        break
print(ans)

Submission status: Accepted

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

Submission status: Accepted

Solution code:
w=str(input())
x=["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"]
z=[]
for i in range(len(x)):
    if w.count(x[i])%2!=0:
        z.append(11)
    else:
        z.append(3)

if 11 in z:
    print("No")
else:
    print("Yes")

Submission status: Accepted

Solution code:
w = input()
alph = set(list(w))
for c in alph:
    if w.count(c) % 2 == 1:
        print('No')
        break
else:
    print('Yes')

Submission status: Accepted

Solution code:
x = input()
s = set(list(x))
f = 0
for i in s:
  if x.count(i) % 2 == 1:
    f = 1
    break
  
if f == 1:
  print("No")
else:
  print("Yes")

Submission status: Accepted

Solution code:
from collections import defaultdict
def main():
	b = defaultdict(int)
	w = input()
	for c in w:
		b[c] += 1

	beauty = True
	for num in b.values():
		if num%2 == 1:
			beauty = False
			break
	if beauty:
		print("Yes")
	else:
		print("No")


if __name__ == '__main__':
	main()

Submission status: Accepted

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

Submission status: Accepted

Solution code:


def solve(w):
  for c in list(set(w)):
    if w.count(c)%2 != 0:
      return False
  return True


if __name__ == "__main__":
  if solve(str(input())):
    print('Yes')
  else:
    print('No')

Submission status: Accepted

Solution code:
import sys
from collections import Counter

w = input()
w_cnt = Counter(w)

for i in w_cnt.values():
    if i % 2 != 0:
        print('No')
        sys.exit()

print('Yes')

Submission status: Accepted

Solution code:
w = str(input())
w_list = list(w)
w_unique = list(set(w_list))

for char in w_unique:
    if w.count(char) % 2 != 0:
        print("No")
        break
else:
    print("Yes")

Submission status: Accepted

Solution code:
w = list(input())
x = set(w)
for i in x:
    if w.count(i)%2!=0:
        print("No")
        break
else:
    print("Yes")

Submission status: Accepted

Solution code:
from collections import Counter
w = input()
cnt = Counter(w)
ans = "Yes"
for i in cnt.values():
    if i % 2 != 0:
        ans = "No"
        break
print(ans)

Submission status: Accepted

Solution code:
W = input()
cnt = {}
for w in W:
    if w in cnt:
        cnt[w] += 1
    else:
        cnt[w] = 1
ans = "Yes"
for i in cnt.values():
    if i % 2 != 0:
        ans ="No"
        break
print(ans)

Submission status: Accepted

Solution code:
s = input()
target = set(s)
flg=True

for i in target:
    if s.count(i) % 2 != 0:
        print("No")
        flg=False
        break
if flg: 
    print("Yes")

Submission status: Accepted

Solution code:
W = input()

r = {}
for w in W:
    r.setdefault(w, 0)
    r[w] += 1

print("Yes" if len(list(filter(lambda x: x % 2 == 1, r.values()))) == 0 else "No")

Submission status: Accepted

Solution code:
import sys
w = input()
for i in range(26):
    if w.count(chr(ord("a") + i)) % 2 != 0:
        print("No")
        sys.exit()
print("Yes")

Submission status: Accepted

Solution code:
w = input()

num = {}
for i in w:
    if i not in num:
        num[i] = 0
    num[i] += 1

ans = 'Yes'
for i in num.values():
    if i%2 != 0:
        ans = 'No'
        break

print(ans)

Submission status: Accepted

Solution code:
w=input()
for i in range(ord('a'),ord('a')+26):
    if w.count(chr(i))%2==1:
        print('No')
        import sys
        sys.exit()
print('Yes')

Submission status: Accepted

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

Submission status: Accepted

Solution code:
w=input()
from collections import Counter
c = Counter(w)
print("Yes" if all(n%2 == 0 for n in c.values()) else "No")

Submission status: Accepted

Solution code:
from collections import defaultdict

def read_input():
    s = input().strip()
    return s


def submit():
    s = read_input()

    char_dic = defaultdict(int)
    for c in s:
        char_dic[c] += 1

    for item in char_dic.items():
        if item[1] % 2 == 1:
            print('No')
            return

    print('Yes')

if __name__ == '__main__':
    submit()

Submission status: Accepted

Solution code:
from collections import Counter

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

Submission status: Accepted

Solution code:
ws = input()

hash_map = {}

for w in ws:
    if w in hash_map.keys():
        hash_map[w] += 1
    else:
        hash_map[w] = 1

is_beatiful = True
for k in hash_map.keys():
    if hash_map[k] % 2 != 0:
        is_beatiful = False

print("Yes" if is_beatiful else "No")

Submission status: Accepted

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

Submission status: Accepted

Solution code:
w = input()
flag = False
arr = []
for i in w:
  arr.append(i)
  
set_arr = list(set(arr))
for i in set_arr:
  count_num = arr.count(i)
  if count_num % 2 != 0:
    flag = True
    break
if flag:
  print("No")
else:
  print("Yes")

Submission status: Accepted

Solution code:
# -*- coding: utf-8 -*-


def solve(w):
    flag = True
    W = list(w)
    W_set = set(W)
    
    for i in range(len(W_set)):
        index = W.count(list(W_set)[i])
        if(index%2 == 1):
            flag = False
            break
            
    if(flag):
        print("Yes")
    else:
        print("No")
    
if __name__ == '__main__':
    w = input()
    
    solve(w)

Submission status: Accepted

Solution code:
w = input()
d = {}

for c in w:
    if c in d.keys():
        d[c] += 1
    else:
        d[c] = 1

ans = "Yes"

for c in w:
    if d[c] % 2 == 1:
        ans = "No"
        
print(ans)

Submission status: Accepted

Solution code:
w=input()
wlist=[]

for i in range(len(w)):
    if w[i] in wlist:
        wlist.remove(w[i])
    else:
        wlist.append(w[i])

if len(wlist)==0:
    print("Yes")
else:
    print("No")

Submission status: Accepted

Solution code:
import sys
from collections import Counter

def main():
    input = sys.stdin.readline
    S = str(input().strip())
    c = Counter(S)
    
    for key in c:
        if c[key] % 2 == 1:
            return 'No'

    return 'Yes'


if __name__ == '__main__':
    print(main())

Submission status: Accepted

Solution code:
from collections import Counter

w=list(str(input()))
h=set(w)

for i in h:
    if w.count(i)%2!=0:
        print("No")
        exit()

print("Yes")

Submission status: Accepted

Solution code:
from collections import Counter
c = Counter(input())
for n in c.values():
  if n % 2 == 1:
    print('No')
    exit()
print('Yes')

Submission status: Accepted

Solution code:
W = input()
words = {}
odd = False

for w in W:
    if w in words:
        words[w] = words[w] + 1
    else:
        words[w] = 1

for word in words:
    if words[word] % 2 == 1:
        odd = True
        
if odd:
    print('No')
else:
    print('Yes')

Submission status: Accepted

Solution code:
from sys import stdin
input=stdin.readline().rstrip()
input_list=list(input)

output="Yes"
for i in range(len(input_list)):
  x=input_list[i]
  if input_list.count(x)%2==1:
    output="No"
    break
print(output)