/
Time Limit: 2 sec / Memory Limit: 1024 MiB
配点 : 100 点
問題文
英大文字からなる文字列 S が与えられます。
S のうち A 以外の文字をすべて . に置き換えた文字列を出力してください。
制約
- S は英大文字からなる長さ 1 以上 100 以下の文字列
入力
入力は以下の形式で標準入力から与えられる。
S
出力
答えを出力せよ。
入力例 1
ATCODER
出力例 1
A......
S のうち A であるのは 1 文字目だけなので、S の 2 文字目から 7 文字目をすべて . にした文字列を出力してください。
入力例 2
BANANA
出力例 2
.A.A.A
S に A が 2 つ以上含まれることもあります。
入力例 3
CORRECT
出力例 3
.......
S に A が 1 つも含まれないこともあります。
Score : 100 points
Problem Statement
You are given a string S consisting of uppercase English letters.
Output the string obtained by replacing every character in S other than A with ..
Constraints
- S is a string of length between 1 and 100 (inclusive) consisting of uppercase English letters.
Input
The input is given from Standard Input in the following format:
S
Output
Output the answer.
Sample Input 1
ATCODER
Sample Output 1
A......
Since the first character is the only occurrence of A in S, output the string obtained by changing the second through seventh characters of S to ..
Sample Input 2
BANANA
Sample Output 2
.A.A.A
S may contain two or more occurrences of A.
Sample Input 3
CORRECT
Sample Output 3
.......
S may contain no occurrence of A.