#P121. [KSC002C] 题号生成器

[KSC002C] 题号生成器

Source

This problem is proposed by Long Long OJ and . All rights reserved.

Problem Background

Can't remember problem numbers? You need a problem ID generator.

Problem Description

Create a problem ID generator. The first line is either CF or AT:

The second line contains an integer idid and a letter chch.

  • If the first line is CF, output the concatenation of CF, idid, and chch;
  • If the first line is AT, output the concatenation of AT, idid, Contest_, and chch.

Input Format

The first line contains a string opop.

The second line contains an integer idid and a letter chch.

Output Format

See the problem description.

CF
1 A
CF1A
AT
1 A
AT1Contest_A

Data Range

For 100%100\% of the data:

  • op{CF,AT}op \in \{\texttt{CF}, \texttt{AT}\},
  • $id \in \{\texttt{1}, \texttt{2}, \ldots, \texttt{99}\}$,
  • $ch \in \{\texttt{A}, \texttt{B}, \ldots, \texttt{Z}\}$.