

Time Limit: 2 sec / Memory Limit: 1024 MiB
配点 : 100 点
問題文
英大文字と英小文字からなる文字列 S が与えられます。S の英大文字のみを元の順序で連結して得られる文字列を出力してください。
制約
- S は英大文字と英小文字からなる文字列である
- S の長さは 1 以上 100 以下である
入力
入力は以下の形式で標準入力から与えられる。
S
出力
S の英大文字のみを元の順序で連結して得られる文字列を出力せよ。
入力例 1
AtCoderBeginnerContest
出力例 1
ACBC
S の英大文字のみを元の順序で連結して得られる文字列は ACBC
です。よって、ACBC
を出力します。
入力例 2
PaymentRequired
出力例 2
PR
入力例 3
program
出力例 3
S に英大文字が含まれないことがあることに注意してください。
Score : 100 points
Problem Statement
You are given a string S consisting of uppercase and lowercase English letters. Print the string obtained by concatenating only the uppercase letters of S in their original order.
Constraints
- S is a string of uppercase and lowercase English letters.
- The length of S is between 1 and 100, inclusive.
Input
The input is given from Standard Input in the following format:
S
Output
Print the string obtained by concatenating only the uppercase letters of S in their original order.
Sample Input 1
AtCoderBeginnerContest
Sample Output 1
ACBC
The string obtained by concatenating only the uppercase letters of S in their original order is ACBC
. Hence, print ACBC
.
Sample Input 2
PaymentRequired
Sample Output 2
PR
Sample Input 3
program
Sample Output 3
Note that S may contain no uppercase letters.