

Time Limit: 2 sec / Memory Limit: 1024 MB
配点 : 点
問題文
Y
か N
のいずれかである文字 と、 a
か b
か c
のいずれかである文字 が与えられます。
が Y
ならば の文字を大文字にしたものを出力してください。
が N
ならば の文字をそのまま出力してください。
制約
- は
Y
かN
のいずれか - は
a
かb
かc
のいずれか
入力
入力は以下の形式で標準入力から与えられる。
出力
問題文の通りに文字を出力せよ。
入力例 1Copy
Y a
出力例 1Copy
A
が Y
なので、 の文字 a
を大文字にした A
を出力します。
入力例 2Copy
N b
出力例 2Copy
b
が N
なので、 の文字 b
をそのまま出力します。
Score : points
Problem Statement
Given are a character , which is Y
or N
, and another character , which is A
, B
, or C
.
If is Y
, print uppercased.
If is N
, print as it is.
Constraints
- is
Y
orN
. - is
a
,b
, orc
.
Input
Input is given from Standard Input in the following format:
Output
Print a character as specified in the problem statement.
Sample Input 1Copy
Y a
Sample Output 1Copy
A
Since is Y
, we should print - which is a
- uppercased, that is, A
.
Sample Input 2Copy
N b
Sample Output 2Copy
b
Since is Y
, we should print - which is b
- as it is.