Toggle navigation
YouTube
Facebook
Telegram
english
english
українська
Algotester 4.3
Build 496
2024-10-17
Log In
Contact Us
College
Sponsors
Donate
Sources
Python 3
from collections import Counter _ = int(input()) s = '' m = '#' for x, y in Counter(input().split()).items(): s += x * (y // 2) if y % 2 == 1: m = x print(s, '' if m == '#' else m, s[::-1], sep='')