Problem list
Log in
#r03353 · Online Judge > GoldOJ

Sorted Distinct Letters

Bronze I 2.0 s 256 MB

Given a string of letters, print each distinct letter that appears once, with all uppercase letters (in alphabetical order) first, followed by all lowercase letters (in alphabetical order), with no separators.

Input

One string of up to $200$ letters (upper and lowercase).

Output

Print the distinct letters, uppercase group then lowercase group.

Example 1

Input
Banana
Output
Ban

Example 2

Input
SASAquiz
Output
ASiquz
Source
Online Judge > GoldOJ
Appears in
Not part of a ladder, contest or set yet.
Accepted 0 Submissions 0 Acceptance 0% Solvers 0

Discussion

Threads about this problem. Spoilers are collapsed; wrap hints in ||double bars||.

No discussion yet. Start a thread if something here needs explaining.

Recent submissions Open with filters
Code