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:
# -*- coding: utf-8 -*-
from sys import stdin

s = stdin.readline().rstrip()
s_unique = list(set(s))
counter = [0 for i in range(len(s_unique))]

for i in range(len(s)):
    for j in range(len(s_unique)):
        if s[i] == s_unique[j]:
            counter[j] += 1
            break

for i in range(len(counter)):
    if counter[i] % 2:
        print("No")
        exit()
print("Yes")

Submission status: Accepted

Solution code:
W = input()
from collections import defaultdict
C = defaultdict(int)
for w in W: C[w] += 1
for k, v in C.items():
    if v % 2:
        print('No')
        break
else:
    print('Yes')

Submission status: Accepted

Solution code:
#! /usr/bin/python3
# ABC044_B
# B - 美しい文字列 / Beautiful Strings
"""
collectionsを使わないタイプ

制約
    1≤|w|≤100
    w は英小文字 (a-z) のみからなる文字列である。
"""

import collections
test_mode = False
use_Counter = True    # collections.Counter を使うかどうか


def judge_0(l):
    """
    collections.Counter を使うタイプ
    奇数会出現する要素があると False を返し、
    全ての要素が偶数回出現すると True を返す。
    """
    count_l = collections.Counter(l)    # l の各要素の出現回数をカウント

    if test_mode:
        print(count_l)

    for i in count_l:
        if count_l[i] % 2 == 1:
            if test_mode:
                print('break')
            return False

    return True


def judge_1(l):
    """
    collections.Counter を使わないタイプ
    奇数会出現する要素があると False を返し、
    全ての要素が偶数回出現すると True を返す。
    """

    for i in l:
        if test_mode:
            print('{}:'.format(i), l.count(i))
            if l.count(i) % 2 == 1:
                print('break')
        if l.count(i) % 2 == 1:
            return False

    return True



def main():
    """
    main関数
    """
    w = list(str(input()))  # 文字列をリストに変換
    if use_Counter:
        beautiful = judge_0(w)
    else:
        beautiful = judge_1(w)

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



if __name__ == '__main__':
    main()

Submission status: Accepted

Solution code:
#! /usr/bin/python3
# ABC044_B
# B - 美しい文字列 / Beautiful Strings
"""
collectionsを使わないタイプ

制約
    1≤|w|≤100
    w は英小文字 (a-z) のみからなる文字列である。
"""

import collections
test_mode = False
use_Counter = False    # collections.Counter を使うかどうか


def judge_0(l):
    """
    collections.Counter を使うタイプ
    奇数会出現する要素があると False を返し、
    全ての要素が偶数回出現すると True を返す。
    """
    broken = False
    count_l = collections.Counter(l)    # l の各要素の出現回数をカウント

    if test_mode:
        print(count_l)

    for i in count_l:
        if count_l[i] % 2 == 1:
            if test_mode:
                print('break')
            broken = True
            break

    return not broken


def judge_1(l):
    """
    collections.Counter を使わないタイプ
    奇数会出現する要素があると False を返し、
    全ての要素が偶数回出現すると True を返す。
    """
    broken = False  # break したら True になるフラグ

    for i in l:
        if test_mode:
            print('{}:'.format(i), l.count(i))
            if l.count(i) % 2 == 1:
                print('break')
        if l.count(i) % 2 == 1:
            broken = True
            break

    return not broken



def main():
    """
    main関数
    """
    w = list(str(input()))  # 文字列をリストに変換
    if use_Counter:
        beautiful = judge_0(w)
    else:
        beautiful = judge_1(w)

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



if __name__ == '__main__':
    main()

Submission status: Accepted

Solution code:
#! /usr/bin/python3
# ABC044_B
# B - 美しい文字列 / Beautiful Strings
"""
collectionsを使わないタイプ

制約
    1≤|w|≤100
    w は英小文字 (a-z) のみからなる文字列である。
"""

import collections
test_mode = False
use_Counter = True    # collections.Counter を使うかどうか


def judge_0(l):
    """
    collections.Counter を使うタイプ
    奇数会出現する要素があると False を返し、
    全ての要素が偶数回出現すると True を返す。
    """
    broken = False
    count_l = collections.Counter(l)    # l の各要素の出現回数をカウント

    if test_mode:
        print(count_l)

    for i in count_l:
        if count_l[i] % 2 == 1:
            if test_mode:
                print('break')
            broken = True
            break

    return not broken


def judge_1(l):
    """
    collections.Counter を使わないタイプ
    奇数会出現する要素があると False を返し、
    全ての要素が偶数回出現すると True を返す。
    """
    broken = False  # break したら True になるフラグ

    for i in l:
        if test_mode:
            print('{}:'.format(i), l.count(i))
            if l.count(i) % 2 == 1:
                print('break')
        if l.count(i) % 2 == 1:
            broken = True
            break

    return not broken



def main():
    """
    main関数
    """
    w = list(str(input()))  # 文字列をリストに変換
    if use_Counter:
        beautiful = judge_0(w)
    else:
        beautiful = judge_1(w)

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



if __name__ == '__main__':
    main()

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
import collections

w = input()
W = collections.Counter(w).values()

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

Submission status: Accepted

Solution code:
import collections
w = list(input())
w = collections.Counter(w)
w_count = w.most_common()
flag = 0

for i in range(len(w_count)):
    if int(w_count[i][1]) % 2 == 1:
        flag = 1

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

Submission status: Accepted

Solution code:
import collections
w = collections.Counter(list(input()))
c = [k%2 for k in w.values()]
print("No" if 1 in c else "Yes")

Submission status: Accepted

Solution code:
from collections import defaultdict, Counter
from itertools import product, groupby, count, permutations, combinations
from math import pi, sqrt
from collections import deque
from bisect import bisect, bisect_left, bisect_right
from string import ascii_lowercase
from functools import lru_cache
import sys
sys.setrecursionlimit(10000)
INF = float("inf")
YES, Yes, yes, NO, No, no = "YES", "Yes", "yes", "NO", "No", "no"
dy4, dx4 = [0, 1, 0, -1], [1, 0, -1, 0]
dy8, dx8 = [0, -1, 0, 1, 1, -1, -1, 1], [1, 0, -1, 0, 1, 1, -1, -1]


def inside(y, x, H, W):
    return 0 <= y < H and 0 <= x < W


def ceil(a, b):
    return (a + b - 1) // b


def main():
    c = Counter(input())
    for k, v in c.items():
        if v % 2 != 0:
            print(No)
            return
    print(Yes)


if __name__ == '__main__':
    main()

Submission status: Accepted

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

Submission status: Accepted

Solution code:
w = str(input())
w_list = list(w)
for letter in set(w_list):
    if w_list.count(letter) % 2 == 1:
        print("No")
        break
    else:
        continue

else:
    print("Yes")

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
w = input()

num = [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0]

for i in range(len(w)):
    if w[i] == 'a':
        num[0] += 1

    elif w[i] == 'b':
        num[1] += 1

    elif w[i] == 'c':
        num[2] += 1

    elif w[i] == 'd':
        num[3] += 1

    elif w[i] == 'e':
        num[4] += 1

    elif w[i] == 'f':
        num[5] += 1

    elif w[i] == 'g':
        num[6] += 1

    elif w[i] == 'h':
        num[7] += 1

    elif w[i] == 'i':
        num[8] += 1

    elif w[i] == 'j':
        num[9] += 1

    elif w[i] == 'k':
        num[10] += 1

    elif w[i] == 'l':
        num[11] += 1

    elif w[i] == 'm':
        num[12] += 1

    elif w[i] == 'n':
        num[13] += 1

    elif w[i] == 'o':
        num[14] += 1

    elif w[i] == 'p':
        num[15] += 1

    elif w[i] == 'q':
        num[16] += 1

    elif w[i] == 'r':
        num[17] += 1

    elif w[i] == 's':
        num[18] += 1

    elif w[i] == 't':
        num[19] += 1

    elif w[i] == 'u':
        num[20] += 1

    elif w[i] == 'v':
        num[21] += 1

    elif w[i] == 'w':
        num[22] += 1

    elif w[i] == 'x':
        num[23] += 1

    elif w[i] == 'y':
        num[24] += 1

    elif w[i] == 'z':
        num[25] += 1

ans = "Yes"

for i in range(len(num)):
    if num[i] % 2 == 1:
        ans = "No"
        break

print(ans)

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
w = list(input())
alphabet = ["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"]
i = 0
while i <= 25:
    if w.count(alphabet[i]) % 2 == 1:
        print("No")
        break
    i += 1
else:
    print("Yes")

Submission status: Accepted

Solution code:
w = input()
l = [0]*len(w)
for i,s in enumerate(w):
    for j in range(len(w)):
        if w[j]==s:
             l[i] += 1

for i in l:
    if i%2!=0:
        print('No')
        import sys
        sys.exit()
print('Yes')

Submission status: Accepted

Solution code:
def check(ar):
    for i in ar:
        if i%2 != 0: return False
    return True

w = input()
  
a = 'abcdefghijklmnopqrstuvwxyz'
ar = [0]*26

for c in w:
    ar[a.find(c)] += 1

if check(ar): print('Yes')
else: print('No')

Submission status: Accepted

Solution code:
word = input()
answer = 'Yes'
for ch in map(chr, range(97, 123)):
    if word.count(ch) % 2 != 0:
        answer = 'No'
        break
print(answer)

Submission status: Accepted

Solution code:
w = input()
answer = 'Yes'
for c in map(chr, range(97, 123)):
    if c in w:
        if w.count(c) % 2 != 0:
            answer = 'No'
            break
print(answer)

Submission status: Accepted

Solution code:
W = input()

dic = {}

for ch in W:
  if ch in dic:
    dic[ch] += 1
  else:
    dic[ch] = 1
  
ans = True
for k,v in dic.items():
  if v%2 != 0:
    ans = False
    break
    
print("Yes" if ans else "No")

Submission status: Accepted

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

Submission status: Accepted

Solution code:
w = input()
abc = 'abcdefghijklmnopqrstuvwxyz'
dic = {}
for s in abc:
    dic[s] = 0

for s in w:
    dic[s] += 1
ch = 0
for s in abc:
    if dic[s]%2 != 0:
        ch = 1
if ch == 0:
    print('Yes')
else:
    print('No')

Submission status: Accepted

Solution code:
w = input()
a = 0
for wi in w:
    a ^= ord(wi)

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
w = input()

def is_beutifull_str(char_str):
    for s in w:
        if w.count(s)%2 == 1:
            return 'No'
    return 'Yes'

print (is_beutifull_str(w))

Submission status: Accepted

Solution code:
w = list(input())
S = set(w)
L = []
T = sorted(S)
for i in range(0,len(S)):
  L.append(w.count(T[i]))

flag = True  
for a in L:
  if (a % 2 != 0):
    flag = False
    
if flag:
  print('Yes')
else:
  print('No')

Submission status: Accepted

Solution code:
w = input()

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
from collections import Counter

w = Counter(list(input()))

for value in w.values():
    if value % 2 != 0:
        print('No')
        break
else:
    print('Yes')

Submission status: Accepted

Solution code:
a=input()
b=''
for x in a:
    if int(x in b)==1:b=b.replace(x,'')
    else:b=b+x
if b=='':print('Yes')
else:print('No')

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
w = input()
print("No" if sum(w.count(c) % 2 for c in set(w)) else "Yes")

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
a=input()
lis=set(a)
li = []
for i in lis:
    if a.count(i) % 2 == 0:
        li.append(a.count(i))
print("Yes" if sum(li)==len(a) else "No")

Submission status: Accepted

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

Submission status: Accepted

Solution code:
import sys
w=input()
alphabet=[chr(i) for i in range(97,97+26)]
for i in range (len(alphabet)):
    if w.count(alphabet[i])%2!=0:
        print('No')
        sys.exit()
print('Yes')

Submission status: Accepted

Solution code:
m = {}
for x in input():
    if x in m:
        m[x] += 1
    else:
        m[x] = 1

lst = [x % 2 for x in m.values()]
if lst.count(1) > 0:
    print("No")
else:
    print("Yes")

Submission status: Accepted

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

Submission status: Accepted

Solution code:
w = input()

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

for i in w:
    b.append(i)

flag = 0

for i in a:
    if b.count(i) % 2 == 1:
        flag = 1
        break

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

Submission status: Accepted

Solution code:
w=input()
mp={"tmp":0}

for c in w:
	if c in mp:
		mp[c]+=1
	else:
		mp[c]=1
res=True
for v in mp.values():
	if v%2!=0:
		res=False
		break
print("Yes" if res else "No")

Submission status: Accepted

Solution code:
from collections import Counter

w = input()

cnt = Counter(w)

isBeautiful = True
for v in cnt.values():
    if v%2 == 1:
        isBeautiful = False
        
if isBeautiful:
    print("Yes")
else:
    print("No")

Submission status: Accepted

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

Submission status: Accepted

Solution code:
#-*-coding:utf-8-*-
from collections import Counter

def main():
    w = list(input())
    counter = Counter(w)
    for c in set(w):
        if counter[c] % 2 != 0:
            print('No')
            exit()
    print('Yes')

if __name__ == '__main__':
    main()

Submission status: Accepted

Solution code:
text = input()
judge = 0
for i in set(text):
    if text.count(i) % 2 == 0:judge += 1
print("Yes" if judge == len(set(text)) else "No")

Submission status: Accepted

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

Submission status: Accepted

Solution code:
#44b
w = input()
w = sorted(w)
ans = True

if len(w)% 2!=0:
    ans = False

else:
    for i in range (len(w)//2):
        if w[2*i] == w[2*i+1]:
            ans = True
        else:
            ans = False
            break
print('Yes' if ans == True else 'No')

Submission status: Accepted

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

for i in syuugou:
  kosuu = w.count(i)
  if kosuu % 2 == 0:
    continue
  else:
    print("No")
    break
else:
  print("Yes")

Submission status: Accepted

Solution code:
w = input()
alpha_dic = {}
for i in range(97,97+26):
    alpha_dic[chr(i)] = 0
for character in w:
    alpha_dic[character] +=1
counter = 0
for key in alpha_dic:
    if alpha_dic[key]%2 == 0:
        counter += 1
    else:
        print('No')
        break
if counter == 26:
    print('Yes')

Submission status: Accepted

Solution code:
w=input()
x={}
for s in w:
    if s in x.keys():
        x[s]+=1
    else:
        x[s]=1
f=False
for v in x.values():
    if v%2==1:
        print('No')
        f=True
        break
if not(f):
    print('Yes')

Submission status: Accepted

Solution code:
w=input()
x={}
for s in w:
    if s in x.keys():
        x[s]+=1
    else:
        x[s]=1
for v in x.values():
    if v%2==1:
        print('No')
        exit()
print('Yes')

Submission status: Accepted

Solution code:
from collections import Counter as c

d=c(input())
if not list(filter(lambda x:x%2, d.values())):
  print("Yes")
else:
  print("No")

Submission status: Accepted

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

Submission status: Accepted

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

for i in w.values():
    if i%2==0:
        pass
    else:
        print('No')
        exit()
print('Yes')

Submission status: Accepted

Solution code:
s=list(input())

s.sort()

n=len(s)

c=1
f=1
now=s[0]

for i in range(1,n):
    if now==s[i]:
        c+=1
    else:
        if c%2==1:
            f=-1
        c=1
        now=s[i]
else:
    if c%2==1:
        f=-1

if f<0:
    print("No")
else:
    print("Yes")

Submission status: Accepted

Solution code:
s=list(input())

s.sort()

n=len(s)

c=1
f=1
now=s[0]

for i in range(1,n):
    if now==s[i]:
        c+=1
    else:
        if c%2==1:
            f=-1
        c=1
        now=s[i]
else:
    if c%2==1:
        f=-1

if f<0:
    print("No")
else:
    print("Yes")

Submission status: Accepted

Solution code:
w = input()

print("Yes" if all([w.count(c)%2==0 for c in set(w)]) else "No")

Submission status: Accepted

Solution code:
s = input()
from collections import Counter
a=all([v%2==0 for v in Counter(s).values()])
if a:print('Yes')
else:print('No')

Submission status: Accepted

Solution code:
alphabet = [chr(c+ord('a')) for c in range(26)]
s = input()
flag = True
for c in alphabet:
  if s.count(c)%2:
    flag = False
    break
print('Yes' if flag else 'No')

Submission status: Accepted

Solution code:
w = input()
d = {}
for s in set(w):
  d[s] = 0
for s in w:
  d[s] += 1
ans = True
for s, n in d.items():
  if n % 2:
    ans = False
    break
print('Yes' if ans else 'No')

Submission status: Accepted

Solution code:
def main():
    w = list(input())

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

    print("Yes")

if __name__ == "__main__":
        main()

Submission status: Accepted

Solution code:
w = input()
d = {}
for x in w:
    d[x] = d.get(x, 0) + 1
print("Yes" if all(map(lambda x: 0 == (x % 2), d.values())) else "No")

Submission status: Accepted

Solution code:
from collections import Counter

w = input()

c = Counter(w)
ans = 'Yes'
for v in c.values():
    if v % 2 == 1:
        ans = 'No'
        break
print(ans)

Submission status: Accepted

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

Submission status: Accepted

Solution code:
from collections import Counter
import sys

w = input()
count_L = Counter(w)
for i in count_L.items():
    if i[1] % 2 != 0:
        print("No")
        sys.exit()

print("Yes")

Submission status: Accepted

Solution code:
w = input()
d = {}
for i in range(len(w)):
    if w[i] in d.keys():
        d[w[i]] += 1
    else:
        d[w[i]] = 1
flg = True
for v in d.values():
    if v % 2 != 0:
        flg = False
        break
print('Yes' if flg else 'No')

Submission status: Accepted

Solution code:
w = str(input())
ar = []
a = 0

for j in range(97, 123):
    b = w.count(chr(j))
    if b %2 == 1:
        print("No")
        a = 0
        break

    else:
        a = 1
if a == 1:
    print("Yes")

Submission status: Accepted

Solution code:
w = list(input())
N = len(w)
w.sort()
for i in range(int(N // 2)):
	if w[0] == w[1]:
		w.remove(w[0])
		w.remove(w[0])

if w == []:
	print("Yes")
else:
	print("No")

Submission status: Accepted

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

Submission status: Accepted

Solution code:
w = input()
d = {}
for ww in w:
    if ww not in d.keys():
        d[ww] = 1
    else:
        d[ww] += 1

def solve(d):
    for key, item in d.items():
        if item%2 == 1:
            print('No')
            return
        
    print('Yes')
    return

solve(d)

Submission status: Accepted

Solution code:
import collections
s=input()
c = collections.Counter(s)
res='Yes'
for k in c:
    if c[k] % 2 != 0:
        res='No'
        break
print(res)

Submission status: Accepted

Solution code:
w = input()

dic = {}
for i in w:
    if i in dic:
        dic[i] += 1
    else:
        dic[i] = 1

ans ='Yes'

for v in dic.values():
    if v % 2 != 0:
        ans = 'No'
        break

print(ans)

Submission status: Accepted

Solution code:
def init_d():
    d = {'a': 0, 'b': 0, 'c': 0, 'd': 0, 'e': 0, 'f': 0, 'g': 0,
         'h': 0, 'i': 0, 'j': 0, 'k': 0, 'l': 0, 'm': 0, 'n': 0,
         'o': 0, 'p': 0, 'q': 0, 'r': 0, 's': 0, 't': 0, 'u': 0,
         'v': 0, 'w': 0, 'x': 0, 'y': 0, 'z': 0}
    return d

W = input()

d = init_d()
n = len(W)
for i in range(n):
    d[W[i]] += 1

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
s=[chr(i) for i in range(97,123)]
N=list(input())
for i in s:
    p=N.count(i)
    if p%2!=0:
        print("No")
        break
else:
    print("Yes")

Submission status: Accepted

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

w = input()
A = {}
for i in w:
    if i not in A:
        A[i] = 1
    else:
        A[i] += 1
for a in A.keys():
    if A[a] % 2 != 0:
        print('No')
        exit()
print('Yes')

Submission status: Accepted

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

Submission status: Accepted

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

from collections import Counter 

w = list(input())

# 各文字ごとに数を集計
str_dict = Counter(w)

for key, value in str_dict.items():
    if value % 2 != 0:
        print("No")
        exit()
print("Yes")

Submission status: Accepted

Solution code:
w=input()
import collections
c=collections.Counter(w)
t=0
for x in c.values():
    if x%2!=0:
        t+=1
print('No' if t else 'Yes')

Submission status: Accepted

Solution code:
s = input()
#l = [0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0]
l = []
roll = ord('z')-ord('a')+1

for i in range(roll):
    l.append(0)

for i in range(len(s)):
    num = ord(s[i])
    l[num-97] += 1
    #print(num)

for i in range(roll):
    if l[i]%2 != 0:
        print("No")
        break
else:
    print("Yes")

Submission status: Accepted

Solution code:
w = input()
alph = ["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"]
ck = 0
for i in range(0, 26):
    if w.count(alph[i])%2 == 1:
        print("No")
        break
else:
    print("Yes")

Submission status: Accepted

Solution code:
import sys

w = list(input())
elements = set(w)

for char in elements:
  if w.count(char) % 2 == 1:
    print("No")
    sys.exit()

print("Yes")

Submission status: Accepted

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

Submission status: Accepted

Solution code:
from collections import Counter
c = Counter(raw_input())
b = True
for k,v in c.items():
  if v%2 == 1:
    b = False
if b:
  print 'Yes'
else:
  print 'No'

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
w=input()
t=[]
for i in range(len(w)):
  if w[i] in t:
    t.remove(w[i])
  else:
    t.append(w[i])
if len(t) == 0:
  print("Yes")
else:
  print("No")

Submission status: Accepted

Solution code:
s = input()
array = []
for i in range(len(s)):
  array.append(s[i])
#print(array)
yes = 1
for i in range(len(array)):
  counter = array.count(array[i])
  if counter % 2 == 1:
    yes = 0
    break

if yes == 1:
  print("Yes")
else:
  print("No")

Submission status: Accepted

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

for i in w:
    if i in lis:
        lis[i] = not(lis[i])
    else:
        lis[i] = False

flag = True
for b in lis.values():
    if not(b):
        print("No")
        flag = False
        break

if(flag):
    print("Yes")

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
w = input()

length = len(w)

letters = []
for i in range(length):
    if w[i] not in letters:
        letters.append(w[i])

wareru = True
for i in range(len(letters)):
    if(w.count(letters[i])%2 != 0):
        wareru = False

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

Submission status: Accepted

Solution code:
s = input()
set_s = set(s)

tmp = True
for i in set_s:
    if s.count(i) %2 != 0:
        tmp = False
print("Yes" if tmp else "No")

Submission status: Accepted

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

Submission status: Accepted

Solution code:
s=input()
for j in range(97,123):
    if s.count(chr(j))%2!=0:
        print('No')
        exit()
print('Yes')

Submission status: Accepted

Solution code:
import collections
if __name__ == "__main__":
    w = input()
    d = collections.defaultdict(int)
    for c in w:
        d[c] += 1
    is_beautiful = True
    for v in d.values():
        if v % 2 != 0:
            is_beautiful = False
            break
    print("Yes" if is_beautiful else "No")

Submission status: Accepted

Solution code:
dic = dict()
s = input()
for c in s:
    if c not in dic.keys():
        dic[c]=0
    dic[c]+=1
print(["No","Yes"][all(map(lambda x: x%2==0, dic.values()))])

Submission status: Accepted

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

Submission status: Accepted

Solution code:
from collections import Counter
c=Counter(list(input()))
for i,j in c.most_common():
  if j%2 ==1:
    print("No")
    exit()
else:
  print("Yes")

Submission status: Accepted

Solution code:
from collections import defaultdict
dic = defaultdict(int)
w = input()
for i in range(len(w)):
    dic[w[i]] += 1

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

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

Submission status: Accepted

Solution code:
def main():
    w = input()
    
    w_dic = dict()
    for i in w:
        w_dic[i] = w_dic.get(i, 0) + 1
    
    for i in w_dic:
        if w_dic[i] % 2 == 1:
            print("No")
            break
            
    else:
        print("Yes")
        
        
if __name__ == "__main__":
    main()

Submission status: Accepted

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

Submission status: Accepted

Solution code:
# -*- coding: utf-8 -*-
from collections import Counter
def inpl(): return list(map(int, input().split()))

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

Submission status: Accepted

Solution code:
w = list(input())

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

Submission status: Accepted

Solution code:
# coding: utf-8
d = {}
for ch in list(input()):
    if ch not in d:
        d[ch] = 1
    else:
        d[ch] += 1

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

print('Yes')

Submission status: Accepted

Solution code:
A = input()
W = []
for i in A:
	W.append(i)
W.sort()
if W[0::2] == W[1::2]:
	print('Yes')
else:
	print('No')

Submission status: Accepted

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

Submission status: Accepted

Solution code:
word = input()
char_set = set(list(word))
flag = 0
for w in char_set:
    if list(word).count(w) % 2 == 1:
        flag = 1

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

Submission status: Accepted

Solution code:
W = input()
W_change = set(W)

course = True
for i in W_change:
	n = W.count(i)
	if n % 2 != 0:
		course = False
		break

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

Submission status: Accepted

Solution code:
in1 = list(input())
in1.sort()
i = 1
flg = True
if len(in1) %2 != 0:
  flg=False
else:
  while i < len(in1):
    if in1[i] != in1[i-1]:
      flg = False
      break
    i+=2
if flg:
  print("Yes")
else:
  print("No")

Submission status: Accepted

Solution code:
from collections import defaultdict

w = input()
wl = defaultdict(int)

for i in w:
    wl[i] += 1
    
if len(list(filter(lambda x:x%2!=0,wl.values())))==0:
    print("Yes")
else:
    print("No")