Uzb Eng

C35C. Game of Thrones
: 2 c
: 64

Dotrak lar qirol Robert ning taxtini egallash uchun hujum rejasini tuzzishdi.

Qirol Robert bu fitna haqida Raven dan eshitdi va uning qirolligiga dushmanlar kirishi mumkin bolgan yagona eshikni berkitish rejasini tuzdi.
Ammo bu eshikni berkitish uchun unga berilgan satrning anagrammasi bolgan va palindrom bolgan satrni topishi kerak boladi.
Qirol Robert da kichik lotin harflaridan iborat satr bor. Unga shu satrning anagrammasi bolgan ixtiyoriy palindrom soz bor yoki yoqligini aniqlashda yordam bering.

:
Bitta qatorda kichik lotin harflarida iborat bolgan A satr berilgan (1 <= A.length <= 100000)

:
Agar qirol Robert ga kerak bolgan satr mavjud bolsa YES aks holda NO sozini chiqaring. (Qoshtirnoqsiz)

aaabbbb
abab
abcc
YES
YES
NO
:
:


Design by TUIT © 2012-2017 TUIT Online Judge. All rights reserved.