只留 A / A
该比赛已结束,您无法在比赛模式下递交该题目。您可以点击“在题库中打开”以普通模式查看和递交本题。
Problem Statement
You are given a string consisting of uppercase English letters.
Output the string obtained by replacing every character in other than A with ..
Constraints
- is a string of length between and (inclusive) consisting of uppercase English letters.
Input
The input is given from Standard Input in the following format:
Output
Output the answer.
ATCODER
A......
Since the first character is the only occurrence of A in , output the string obtained by changing the second through seventh characters of to ..
BANANA
.A.A.A
may contain two or more occurrences of A.
CORRECT
.......
may contain no occurrence of A.
- Source: AtCoder ABC 472 A