{"problem":{"name":"AtCoder Quiz 3","description":{"content":"AtCoder Grand Contest (AGC), a regularly held contest with a world authority, has been held $54$ times. Just like the $230$\\-th ABC ― the one you are in now ― is called `ABC230`, the $N$\\-th AGC is in","description_type":"Markdown"},"platform":"AtCoder","limit":{"time_limit":2000,"memory_limit":262144},"difficulty":"None","is_remote":true,"is_sync":true,"sync_url":null,"sign":"abc230_a"},"statements":[{"statement_type":"Markdown","content":"AtCoder Grand Contest (AGC), a regularly held contest with a world authority, has been held $54$ times.\nJust like the $230$\\-th ABC ― the one you are in now ― is called `ABC230`, the $N$\\-th AGC is initially named with a zero-padded $3$\\-digit number $N$. (The $1$\\-st AGC is `AGC001`, the $2$\\-nd AGC is `AGC002`, ...)\nHowever, the latest $54$\\-th AGC is called `AGC055`, where the number is one greater than $54$. Because `AGC042` is canceled and missing due to the social situation, the $42$\\-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.)\nHere is the problem: given an integer $N$, print the name of the $N$\\-th AGC in the format `AGCXXX`, where `XXX` is the zero-padded $3$\\-digit number.\n\n## Constraints\n\n*   $1 \\leq N \\leq 54$\n*   $N$ is an integer.\n\n## Input\n\nInput is given from Standard Input in the following format:\n\n$N$\n\n[samples]","is_translate":false,"language":"English"}],"meta":{"iden":"abc230_a","tags":[],"sample_group":[["42","AGC043\n\nAs explained in Problem Statement, the $42$\\-th and subsequent AGCs are assigned numbers that are one greater than the numbers of contests.  \nThus, the $42$\\-th AGC is named `AGC043`."],["19","AGC019\n\nThe $41$\\-th and preceding AGCs are assigned numbers that are equal to the numbers of contests.  \nThus, the answer is `AGC019`."],["1","AGC001\n\nAs mentioned in Problem Statement, the $1$\\-st AGC is named `AGC001`.  \nBe sure to pad the number with zeros into a $3$\\-digit number."],["50","AGC051"]],"created_at":"2026-03-03 11:01:13"}}