100 atcoder#ABC230A. [ABC230A] AtCoder Quiz 3
[ABC230A] AtCoder Quiz 3
Score : points
Problem Statement
AtCoder Grand Contest (AGC), a regularly held contest with a world authority, has been held times.
Just like the -th ABC ― the one you are in now ― is called ABC230
, the -th AGC is initially named with a zero-padded -digit number . (The -st AGC is AGC001
, the -nd AGC is AGC002
, ...)
However, the latest -th AGC is called AGC055
, where the number is one greater than . Because AGC042
is canceled and missing due to the social situation, the -th and subsequent contests are assigned numbers that are one greater than the numbers of contests held. (See also the explanations at Sample Inputs and Outputs.)
Here is the problem: given an integer , print the name of the -th AGC in the format AGCXXX
, where XXX
is the zero-padded -digit number.
Constraints
- is an integer.
Input
Input is given from Standard Input in the following format:
Output
Print the name of the -th AGC in the specified format.
42
AGC043
As explained in Problem Statement, the -th and subsequent AGCs are assigned numbers that are one greater than the numbers of contests.
Thus, the -th AGC is named AGC043
.
19
AGC019
The -th and preceding AGCs are assigned numbers that are equal to the numbers of contests.
Thus, the answer is AGC019
.
1
AGC001
As mentioned in Problem Statement, the -st AGC is named AGC001
.
Be sure to pad the number with zeros into a -digit number.
50
AGC051