#!/usr/bin/env python3
import sys
import random
# maj = True
for line in sys.stdin:
nl = ""
word = ""
grace = True
for c in line:
if c.isalpha():
if grace:
nl += word
nl += c
grace = False
else:
word += c
wrd = list(word)
random.shuffle(wrd)
nl += "".join(wrd)
print(nl, end="")