시간 제한메모리 제한제출정답맞힌 사람정답 비율
1 초 1024 MB48835932975.286%

문제

We love our UCF and we are going to change everything to UCF!

Given a string, change the string to UCF as follows:

  • Characters before the leftmost “U” in the string are changed to hyphen (“-”).
  • Characters after the rightmost “F” in the string are changed to hyphen.
  • Characters between the leftmost U and the rightmost F are changed to “C”.

Assume the string will contain at least one “U”, at least one “F” after that U, and at least one character between the U and F.

입력

There is only one input line; it contains a string of uppercase letters. The string will have at least 3 and at most 50 characters.

출력

Print the input string converted to UCF.

예제 입력 1

ABUDEGHFXYZ

예제 출력 1

--UCCCCF---

예제 입력 2

CCUZF

예제 출력 2

--UCF

예제 입력 3

ABFABCUABABFABUABFABUAB

예제 출력 3

------UCCCCCCCCCCF-----

예제 입력 4

UABCFABCDE

예제 출력 4

UCCCF-----