Skip to content
C

Remove Duplicate Characters

Easyjavapythonccppjavascript

Given a string, remove repeated characters, keeping only the first occurrence of each character in its original position.

Input Format

A single line containing the string S with no spaces.

Output Format

Print the string after removing duplicate characters.

Input (stdin)

Output

Run your code to see output here...