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:
W = input()
dic = {}
for w in W:
  if w in dic:
    dic[w] += 1
  else:
    dic[w] = 1
flg = True
for v in dic.values():
  if v % 2 != 0:
    flg = False
if flg:
  print('Yes')
else:
  print('No')

Submission status: Accepted

Solution code:
import collections

w=list(input())
c=collections.Counter(w)
for i  in c.values():
	if i%2==1:
		print("No")
		exit()
print("Yes")

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
li = list(input())
li_w = set(li)

ans = True

for i in li_w:
    u = li.count(i)
    if u % 2:
        ans = False

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

Submission status: Accepted

Solution code:
from collections import Counter

w = input()
counter = Counter(w)

for v in counter.values():
    if v % 2 != 0:
        print('No')
        exit()
print('Yes')

Submission status: Accepted

Solution code:
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")

Submission status: Accepted

Solution code:
s=input()
import collections
c=collections.Counter(s)
value=list(c.values())
for k in range(len(value)):
    if value[k]%2==1:
        print("No")
        import sys
        sys.exit()
print("Yes")

Submission status: Accepted

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

Submission status: Accepted

Solution code:
s = input()

import collections
c = collections.Counter(s)
for i in c.values():
    if i%2!=0:
        print("No")
        exit()
print("Yes")

Submission status: Accepted

Solution code:
import collections

w = input()

c = dict(collections.Counter(w))

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

print("Yes")

Submission status: Accepted

Solution code:
from collections import Counter
c = Counter(list(input()))
for k, v in c.items():
    if v%2 != 0:
        print('No')
        break
else:
    print('Yes')

Submission status: Accepted

Solution code:
#ABC044

import collections

w = input()

a = list(collections.Counter(w).values())
b = [a[i] for i in range(len(a)) if int(a[i]) % 2 == 0]


if len(a) == len(b):
    print("Yes")
else:
    print("No")

Submission status: Accepted

Solution code:
w=input()
ans="Yes"
w_len=len(w)
if w_len%2==1:
    ans="No"
else:
    for i in range(w_len):
        w_i=w[i]
        w_count=w.count(w_i)
        if w_count%2==1:
            ans="No"
print(ans)

Submission status: Accepted

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

Submission status: Accepted

Solution code:
w_str = input()
cnt_li = [w_str.count(w) for w in w_str]
for i in range(len(cnt_li)) :
    if cnt_li[i] % 2 == 1:
        print("No")
        break
    if i == len(cnt_li) - 1 :
        print("Yes")

Submission status: Accepted

Solution code:
w = input()

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

print("Yes")

Submission status: Accepted

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

flag = True
for v in c.values():
    if v%2!=0: flag = False
    
print('Yes' if flag else 'No')

Submission status: Accepted

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

Submission status: Accepted

Solution code:
w = sorted(input())
flag = 0

for i in w:
  c = w.count(i)
  if c % 2 == 0:
    pass
  else:
    print('No')
    flag = 1
    break

if flag == 0:
  print('Yes')

Submission status: Accepted

Solution code:
import collections
w=list(input())
c=collections.Counter(w)
flag=0
l=list(c.values())
for i in range(len(l)):
    if not(l[i]%2==0):
        flag=1


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

Submission status: Accepted

Solution code:
alphabet = "abcdefghijklmnopqrstuvwxyz"
w = list(input())

for alpha in alphabet:
    if w.count(alpha) % 2 == 1:
        print("No")
        break
else:
    print("Yes")

Submission status: Accepted

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

Submission status: Accepted

Solution code:
wl = list(input())
for w in wl:
    if wl.count(w) % 2 != 0:
        print('No')
        exit()
else:
    print('Yes')

Submission status: Accepted

Solution code:
w = input()
lst = sorted(w)

for _ in range(len(lst)//2):
    if lst[-1] == lst[-2]:
        lst = lst[:-2]
print('Yes' if len(lst)==0 else 'No')

Submission status: Accepted

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

flag = True

for ss in s:
    if w.count(ss) % 2 != 0:
        flag = False
        break

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

Submission status: Accepted

Solution code:
e = input()
set_e = set(e)
is_beautiful = 'Yes'
for i in set_e:
    if e.count(i)%2 == 1:
        is_beautiful = 'No'
        break
    else:
        pass
print(is_beautiful)

Submission status: Accepted

Solution code:
W = input()
alpha = []
num = []
for char in W:
    if char in alpha:
        num[alpha.index(char)] += 1
    else:
        alpha.append(char)
        num.append(1)

ans = 'Yes'
for n in num:
    if n % 2 == 1:
        ans = 'No'
        break

print(ans)

Submission status: Accepted

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

bl = True;
for v in c.values():
  if v%2==1:
    bl = False

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

Submission status: Accepted

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

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
import sys, re, os
from collections import deque, defaultdict, Counter
from math import ceil, sqrt, hypot, factorial, pi, sin, cos, radians
from itertools import permutations, combinations, product, accumulate
from operator import itemgetter, mul
from copy import deepcopy
from string import ascii_lowercase, ascii_uppercase, digits
from fractions import gcd
 
def input(): return sys.stdin.readline().strip()
def INT(): return int(input())
def MAP(): return map(int, input().split())
def S_MAP(): return map(str, input().split())
def LIST(): return list(map(int, input().split()))
def S_LIST(): return list(map(str, input().split()))
 
sys.setrecursionlimit(10 ** 9)
INF = float('inf')
mod = 10 ** 9 + 7

w = input()
l = Counter(w)
for i,j in l.items():
    if not j % 2 == 0:
        print("No")
        exit()
print("Yes")

Submission status: Accepted

Solution code:
w = input()
w_list = list(w)
w_set = set(w_list)
for val in w_set:
    if w_list.count(val) % 2 == 0:
        continue
    else:
        print('No')
        break
else:
    print('Yes')

Submission status: Accepted

Solution code:
# 入力　文字列1つ
w = input()

w_list = list(w)
alphabet = dict.fromkeys("abcdefghijklmnopqrstuvwxyz",0)
beautiful = True

for i in range(len(w)) :
    alphabet[w_list[i]] += 1

for i in alphabet :
    if alphabet[i]%2 != 0 :
        beautiful = False

if beautiful == True :
    print("Yes")
else :
    print("No")

Submission status: Accepted

Solution code:
w = input()
fl = True
for j in w:
    if w.count(j)&1:
        fl = False
print('Yes') if fl else print('No')

Submission status: Accepted

Solution code:
w = input()
a = [0 for _ in range(26)]

for i in range(len(w)):
    s = ord(w[i]) - ord("a")
    a[s] += 1

for i in range(26):
    if a[i] % 2 == 1:
        print("No")
        break
else:
    print("Yes")

Submission status: Accepted

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

Submission status: Accepted

Solution code:
s = input()
d = dict()
for c in s:
    if c in d:
        d[c] += 1
    else:
        d[c] = 1
for v in d.values():
    if v % 2 !=0:
        print("No")
        exit(0)
print("Yes")

Submission status: Accepted

Solution code:
from collections import Counter
a = input()
b=Counter(a)
x=b.values()
for s in x:
    if s % 2 != 0:
       print ("No")
       break
else:
    print("Yes")

Submission status: Accepted

Solution code:
import collections
s=list(input())
l=collections.Counter(s)
a=all(v%2==0 for v in l.values())
print("Yes" if a==True else "No")

Submission status: Accepted

Solution code:
import collections
w = input()
a = list(w)
b = collections.Counter(a)
for i in b.keys():
	if b[i] %2 == 1:
		print ("No")
		exit()
print ("Yes")

Submission status: Accepted

Solution code:
s = input()
d = dict()
for c in s:
  if c in d:
    d[c] += 1
  else:
    d[c] = 1
for v in d.values():
  if v % 2 != 0:
    print('No')
    exit()
print('Yes')

Submission status: Accepted

Solution code:
S = input()
D = {}
for i in S:
  if i in D:
    D[i] += 1
    D[i] %= 2
  else:
    D[i] = 1
if sum(D[i] for i in D) == 0:
  print("Yes")
else:
  print("No")

Submission status: Accepted

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

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

Submission status: Accepted

Solution code:
s= input()
 
char_list = [ chr(ord('a')+num) for num in range( 26 ) ]

ind = 0
for i in char_list:
  if s.count(i) % 2 != 0:
    ind = 1
    break
if ind == 1:
  print("No")
else:
  print("Yes")

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
#!/usr/bin/env python3
# -*- coding: utf-8 -*-


def main():
    W = list(input())

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


if __name__ == "__main__":
    main()

Submission status: Accepted

Solution code:
from collections import Counter
 
n = Counter(input())
 
for i in n.values():
  if i%2==1:
    print("No")
    break

else:
  print("Yes")

Submission status: Accepted

Solution code:
str = input()
list = []
for x in range(len(str)):
    list.append(str[x])
list.sort()
if len(str) % 2 != 0: print("No")
else: 
    iscount = True
    for x in range(int(len(str) / 2)):
        if list[2 * x] != list[2 * x + 1]: iscount = False
    if iscount == True: print("Yes")
    else:print("No")

Submission status: Accepted

Solution code:
w = list(input())
import collections
c = collections.Counter(w)
li = list(c.values())
ans = "Yes"
for i in range(len(li)) :
    if li[i] % 2 == 1 :
        ans = "No"
        break
print(ans)

Submission status: Accepted

Solution code:
#!/usr/bin/env python3

s=input()
d={}
for i in s:
    if i in d:
        d[i]=d[i]+1
    else:
        d[i]=1

c="Yes"
for k,v in d.items():
    if v%2 !=0:
        c="No"


print(c)

Submission status: Accepted

Solution code:
w = input()

w_dict = dict()
for i in range(len(w)):
    if w[i] in w_dict:
        w_dict[w[i]] += 1
    else:
        w_dict[w[i]] = 1
        
for v in w_dict.values():
    if v % 2 != 0:
        print("No")
        exit()
        
print("Yes")

Submission status: Accepted

Solution code:
"""
author : halo2halo
date : 4, Feb, 2020
"""

import sys
import itertools

import numpy as np

read = sys.stdin.buffer.read
readline = sys.stdin.buffer.readline
readlines = sys.stdin.buffer.readlines

S = readline().decode('utf8').rstrip()
se = set(S)

ans = True
for m in se:
    if S.count(m) % 2 != 0:
        ans = False

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

Submission status: Accepted

Solution code:
import collections
w=input()
c = collections.Counter(w)
d=list(c.values())
for i in range(len(d)):
  if d[i]%2!=0:
    print('No')
    break
else:
  print('Yes')

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
w = list(input())
moji = set()
ans = 'Yes'
for i in range(len(w)):
    moji.add(w[i])

for i in moji:
    if (w.count(i) % 2)!= 0:
        ans = 'No'

print(ans)

Submission status: Accepted

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

Submission status: Accepted

Solution code:
n=input()
l=set(list(n))
b=True
for x in l:
    if n.count(x)%2==1:b=False
if b:print("Yes")
else:print("No")

Submission status: Accepted

Solution code:
import string
count = 0
lis = input()
for i in string.ascii_lowercase:
    if not lis.count(i)%2 == 0:
        count += 1
        break

if count == 0:
    print("Yes")
else:
    print("No")

Submission status: Accepted

Solution code:
a=list(input())
a.sort()
ans = 'Yes'
if len(a)%2==1:
  ans='No'
else:
  for i in range(0,len(a),2):
    if a[i]!=a[i+1]:
      ans='No'
print(ans)

Submission status: Accepted

Solution code:
from collections import Counter

w = input()

count = Counter(w)

judge = True

for v in count.values():
    if v % 2 == 1:
        judge = False

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

Submission status: Accepted

Solution code:
w = input()

t = set()
for i in w:
    t.add(i)

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

print('Yes')

Submission status: Accepted

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

Submission status: Accepted

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

letters = "abcdefghijklmnopqrstuvwxyz"
flg = True
for letter in letters:
    num = w.count(letter)
    if num % 2 != 0:
        flg = False
        break
if flg:
    print("Yes")
else:
    print("No")

Submission status: Accepted

Solution code:
w = input()

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

Submission status: Accepted

Solution code:
w = list(input())
tmp = []
for i in w:
    if w.count(i) % 2 == 0:
        if i in tmp:
            continue
        else:
            tmp.append(i)
    else:
        print('No')
        exit()
print('Yes')

Submission status: Accepted

Solution code:
#!/usr/bin/env python3
import numpy as np

w = input()
alpha = np.full(26,0)

for i in range(len(w)):
    alpha[ord(w[i])-ord('a')] += 1

flg = True
for i in range(26):
    if alpha[i]%2 != 0:
        flg = False

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

Submission status: Accepted

Solution code:
import sys

w = input()
letters = dict()

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

for _, v in letters.items():
    if v % 2 != 0:
        print('No')
        sys.exit()

print('Yes')

Submission status: Accepted

Solution code:
def solve(w):
    d = {}
    for l in w:
        d[l] = (d[l] + 1) if l in d else 1
    return 'Yes' if all(v % 2 == 0 for v in d.values()) else 'No'

_w = input()
print(solve(_w))

Submission status: Accepted

Solution code:
w=input()
l=list(i for i in w)
m=list(set(l))
for j in range(len(m)):
	if l.count(m[j]) % 2 != 0:
		print('No')
		exit(0)
print('Yes')

Submission status: Accepted

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

Submission status: Accepted

Solution code:
from collections import Counter

def is_this_a_beautiful_sentence(sentence):

    letter_count = Counter(sentence)
    for c in letter_count.values():
        if c % 2 == 1:
            return 'No'
    
    return 'Yes'

if __name__=='__main__':
    print(is_this_a_beautiful_sentence(input()))

Submission status: Accepted

Solution code:
abc ="abcdefghijklmnopqrstuvwxyz"
word = input()
num = 0
for i in range(26):
    for j in range(len(word)):
        if word[j] == abc[i]:
            num = num + 1
    if num % 2 != 0:
        break
    num = 0
if num % 2 != 0:
    print("No")
else:
    print("Yes")

Submission status: Accepted

Solution code:
import sys
import numpy as np

# w 判定する文字列取得
w = input()

char_cnt = np.zeros(27)

for c in w:
    # アスキーコードで'a'からの変位を取得
    i = ord(c) - ord('a')
    # 出現した文字数をカントアップ
    char_cnt[i] += 1

# 2で割った余りを求める
char_mod = char_cnt % 2

if char_mod.sum() == 0:
    # 余りの合計が 0 なら美しい
    print("Yes")
else:
    print("No")

Submission status: Accepted

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

Submission status: Accepted

Solution code:
w=input()
check=False
for i in w:
  if(not w.count(i)%2==0):
    check=True
    break
if (check):
  print("No")
else:
  print("Yes")

Submission status: Accepted

Solution code:
from collections import defaultdict
s=list(input())
d=defaultdict(int)
for i in s:
  d[i]+=1
for i in d.values():
  if i%2:
    print("No")
    break
else:
  print("Yes")

Submission status: Accepted

Solution code:
w = input()

letters = ['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', ]

counts = []

for letter in letters:
  counts.append(w.count(letter))

isEven = True
for c in counts:
  if (c % 2 == 1):
    isEven = False

result = 'Yes' if isEven else 'No'
print(result)

Submission status: Accepted

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

count_number = 0
for i in range(len(count_w)):
  if w.count(count_w[i]) % 2 == 0:
    count_number += 1

print("Yes" if count_number == len(count_w) else "No")

Submission status: Accepted

Solution code:
import re

if __name__ == "__main__":
    word = input()
    s = re.compile("[a-z]+")
    ans = "Yes"
    if s.fullmatch(word) is not None:
        unique_w = list(set(word))
        for w in unique_w:
            if word.count(w) % 2 != 0:
                ans = "No"
        

    print(ans)

Submission status: Accepted

Solution code:
w = input()
a = 0

for i in range(len(w)):
    a = w.count(w[i])
    if(a%2 != 0):
        print("No")
        break
    else:
        if(i == len(w)-1):
            print("Yes")
            break

Submission status: Accepted

Solution code:
abc_list = ['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']

if __name__ == '__main__':
	w = input()
	w = [s.split()[0] for s in w]

	check = 0
	
	for i in abc_list:
		if w.count(i) % 2 != 0:
			check = 1
			break

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

Submission status: Accepted

Solution code:
from collections import Counter

in_s = input()

def judge(s):
    cnt = Counter(list(s))
    for _, v in cnt.items():
        if v % 2 != 0:
            return False
    return True

if judge(in_s):
    print("Yes")
else:
    print("No")

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
s = input()

res = 'Yes'

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

print(res)

Submission status: Accepted

Solution code:
s=[]
t=input()
for i in range(ord("a"),ord("z")+1):
    s.append(t.count(chr(i)))
for i in range(len(s)):
    if s[i]%2 != 0:
        print("No")
        exit(0)
print("Yes")

Submission status: Accepted

Solution code:
from collections import Counter
c1 = Counter(input())
for c in c1:
  if c1[c] % 2 != 0:
    print('No')
    break
else:
  print('Yes')

Submission status: Accepted

Solution code:
w = input()
checked_char = ""
r = 'Yes'
for c in w:
  if c not in checked_char:
    if (w.count(c)) % 2 == 1:
      r = 'No'
      break
    checked_char += c
    
print(r)

Submission status: Accepted

Solution code:
n = list(input())

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

Submission status: Accepted

Solution code:
w = str(input())
w = list(w)

flag = True
for c in [chr(i) for i in range(97, 97+26)]:
    count = 0
    for i in range(len(w)):
        if w[i] == c:
            count += 1
    if count % 2 == 0:
        pass
    else:
        flag = False

if flag == True:
    print('Yes')
else:
    print('No')

Submission status: Accepted

Solution code:
import sys
input = sys.stdin.readline
w=input().strip()
from collections import Counter
s=Counter(w)
for a in s.values():
    if a%2==1:
        print("No")
        exit()
print("Yes")

Submission status: Accepted

Solution code:
s = input()
w = {}
ret = 'Yes'

for i in range(len(s)):
    if s[i] in w:
        w[s[i]] = w[s[i]] + 1
    else:
        w[s[i]] = 1

for num in w:
    if (w[num] % 2) == 1:
        ret = 'No'
        break

print(ret)

Submission status: Accepted

Solution code:
w = input()
ans = "Yes"
for letter in set(w):
    cnt = w.count(letter)
    if cnt % 2 != 0:
        ans = "No"
    else:
        continue
print(ans)

Submission status: Accepted

Solution code:
w = input()
checked_char = []
r = 'Yes'
for i in range(len(w)):
  if w[i] not in checked_char:
    if (w.count(w[i])) % 2 == 1:
      r = 'No'
    checked_char.append(w[i])
    
print(r)

Submission status: Accepted

Solution code:
w=list(input())
alpha=[0 for i in range(26)]
ans="Yes"
for i in range(len(w)):
    alpha[ord(w[i])-97]+=1
#print(alpha)
for i in range(26):
    num=alpha[i]
    if num!=0 and num%2!=0:
        ans="No"
        break
print(ans)

Submission status: Accepted

Solution code:
INT = lambda: int(input())
INTM = lambda: map(int,input().split())
STRM = lambda: map(str,input().split())
STR = lambda: str(input())
LIST = lambda: list(map(int,input().split()))
LISTS = lambda: list(map(str,input().split()))
def do():
    ws=STR()
    alp='abcdefghijklmnopqrstuvwxyz'
    ans=[0]*26
    flg=1
    for w in ws:
        ct=alp.index(w)
        ans[ct]+=1
    for i in ans:
        if i%2==1:
            flg=0
    if flg==1:
        print('Yes')
    else:
        print('No')
if __name__ == '__main__':
    do()

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

print(ans)

Submission status: Accepted

Solution code:
n = list(input())

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

Submission status: Accepted

Solution code:
W = sorted(input())
n = len(W)
if n % 2 == 1:
    print('No')
    exit()

for i in range(0, n, 2):
    w1, w2 = W[i], W[i+1]
    if w1 != w2:
        print('No')
        exit()

print('Yes')

Submission status: Accepted

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

c = collections.Counter(s)

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

print('Yes')

Submission status: Accepted

Solution code:
s=input()
dic={}
for i in s:
    if i in dic:
        dic[i]+=1
    else:
        dic[i]=1
for i in dic.values():
    if i%2==1:
        print("No")
        exit()
print("Yes")

Submission status: Accepted

Solution code:
from collections import Counter
w = input()
c = Counter(w)
s = "abcdefghijklmnopqrstuvwxyz"
for e in s:
    if c[e]%2 != 0:
        print("No")
        exit(0)
print("Yes")

Submission status: Accepted

Solution code:
import collections

w = input()

wc = collections.Counter(w).most_common()
for i in wc:
    if i[1] % 2:
        print("No")
        exit()

print("Yes")

Submission status: Accepted

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

Submission status: Accepted

Solution code:
from collections import defaultdict
chars = input()

d = defaultdict(int)

for c in chars:
    d[c] += 1

is_Yes = True
for cnt in d.values():
    if cnt % 2 != 0:
        is_Yes = False
        break

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

Submission status: Accepted

Solution code:
# coding: utf-8
from collections import Counter
alp = "abcdefghijklmnopqrstuvwxyz"
w = input()
cnt = dict(Counter(w))
flag = True
for a in alp:
    try:
        if cnt[a] % 2 == 1:
            flag = False
            exit()
    except:
        pass
print("Yes" if flag else "No")

Submission status: Accepted

Solution code:
w = input()

alphabet = set(w)
for a in alphabet:
    if w.count(a) % 2 != 0:
        import sys
        print('No')
        sys.exit()

print('Yes')

Submission status: Accepted

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

Submission status: Accepted

Solution code:
w = input()

word_list = "abcdefghijklmnopqrstuvwxyz"
flag = True

for i in word_list:
    if w.count(i) % 2:
        flag = False
        break
print("Yes" if flag else "No")

Submission status: Accepted

Solution code:
import sys
input = sys.stdin.readline
from collections import Counter
w = list(input().rstrip())
c = Counter(w)
for i in c.values():
    if i % 2 != 0:
        print("No")
        sys.exit()
    else:
        pass
print("Yes")

Submission status: Accepted

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

Submission status: Accepted

Solution code:
w = str(input())

alphabets = [chr(ord('a') + i) for i in range(26)]

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

Submission status: Accepted

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

w = input()

isBeaut = True
for i in set(w):
    if w.count(i)%2 == 1:
        isBeaut = False

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

Submission status: Accepted

Solution code:
s = input()
dic = {}
for i in s:
  if i in dic:
    dic[i] += 1
  else:
    dic[i] = 1

for i in dic:
  if dic[i]%2 != 0:
    print('No')
    break
else:
  print('Yes')

Submission status: Accepted

Solution code:
w = str(input())
alp = 'abcdefghijklmnopqrstuvwxyz'
flag = True

for i in range(len(alp)):
    cnt = 0
    for j in range(len(w)):
        if alp[i]==w[j]:
            cnt += 1
    if cnt%2!=0:
        flag = False
        break

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

Submission status: Accepted

Solution code:
w = input()
sw = set(w)

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

print("Yes")

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
# AtCoder Beginner Contest 044 - B
# -*- encoding: UTF-8 -*-

alpha = "abcdefghijklmnopqrstuvwxyz"
cd = {}
for c in alpha:
  cd[c] = 0

w = input()
for c in w:
  cd[c] = cd[c] + 1

result = "Yes"

for v in cd.values():
  if v % 2 == 1:
    result = "No"
    break

print(result)

Submission status: Accepted

Solution code:
import collections

w = str(input())
counter = collections.Counter(w)

ans = 'Yes'
for key, val in counter.items():
    if val % 2 == 0:
        pass
    else:
        ans = 'No'
    
print(ans)

Submission status: Accepted

Solution code:
import collections

s = input()
lst = []
for i in s:
    lst.append(i)
c = collections.Counter(lst)
for i in c.values():
    if i % 2 != 0:
        x = 'No'
        break
    else:
        x = 'Yes'
print(x)

Submission status: Accepted

Solution code:
W = input()
cnt = [0] * 30
for i in W: cnt[ord(i) - ord('a')] += 1
for i in cnt:
    if i % 2 == 1:
        print('No')
        exit()
print('Yes')

Submission status: Accepted

Solution code:
w = input()

import collections

c = collections.Counter(w)

b = True
for i in c.values():
  if i % 2 == 1:
    b = False

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

Submission status: Accepted

Solution code:
import sys
w = input()

count_list = [w.count(i) for i in w]
count_list = list(set(count_list))

print('Yes' if all( i % 2 == 0 for i in count_list) else 'No')

Submission status: Accepted

Solution code:
s = input()
s_list = [s[_] for _ in range(len(s))]

dic = dict()
for c in s_list:
  if c in dic:
    dic[c] += 1
  else:
    dic[c] = 1

flg = True
for key in dic:
  if dic[key]%2 != 0:
    flg = False
    break
    
if flg:
  print('Yes')
else:
  print('No')

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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