A - Keyboard Editorial /

Time Limit: 2 sec / Memory Limit: 1024 MB

配点 : 100100

問題文

YN のいずれかである文字 SS と、 abc のいずれかである文字 TT が与えられます。

SSY ならば TT の文字を大文字にしたものを出力してください。

SSN ならば TT の文字をそのまま出力してください。

制約

  • SSYN のいずれか
  • TTabc のいずれか

入力

入力は以下の形式で標準入力から与えられる。

SS
TT

出力

問題文の通りに文字を出力せよ。


入力例 1Copy

Copy
Y
a

出力例 1Copy

Copy
A

SSY なので、TT の文字 a を大文字にした A を出力します。


入力例 2Copy

Copy
N
b

出力例 2Copy

Copy
b

SSN なので、TT の文字 b をそのまま出力します。

Score : 100100 points

Problem Statement

Given are a character SS, which is Y or N, and another character TT, which is A, B, or C.

If SS is Y, print TT uppercased.

If SS is N, print TT as it is.

Constraints

  • SS is Y or N.
  • TT is a, b, or c.

Input

Input is given from Standard Input in the following format:

SS
TT

Output

Print a character as specified in the problem statement.


Sample Input 1Copy

Copy
Y
a

Sample Output 1Copy

Copy
A

Since SS is Y, we should print TT - which is a - uppercased, that is, A.


Sample Input 2Copy

Copy
N
b

Sample Output 2Copy

Copy
b

Since SS is Y, we should print TT - which is b - as it is.



2025-04-14 (Mon)
17:43:22 +00:00