{"raw_statement":[{"iden":"problem statement","content":"You have a digit sequence $S$ of length $4$. You are wondering which of the following formats $S$ is in:\n\n*   YYMM format: the last two digits of the year and the two-digit representation of the month (example: `01` for January), concatenated in this order\n*   MMYY format: the two-digit representation of the month and the last two digits of the year, concatenated in this order\n\nIf $S$ is valid in only YYMM format, print `YYMM`; if $S$ is valid in only MMYY format, print `MMYY`; if $S$ is valid in both formats, print `AMBIGUOUS`; if $S$ is valid in neither format, print `NA`."},{"iden":"constraints","content":"*   $S$ is a digit sequence of length $4$."},{"iden":"input","content":"Input is given from Standard Input in the following format:\n\n$S$"},{"iden":"sample input 1","content":"1905"},{"iden":"sample output 1","content":"YYMM\n\nMay $XX19$ is a valid date, but $19$ is not valid as a month. Thus, this string is only valid in YYMM format."},{"iden":"sample input 2","content":"0112"},{"iden":"sample output 2","content":"AMBIGUOUS\n\nBoth December $XX01$ and January $XX12$ are valid dates. Thus, this string is valid in both formats."},{"iden":"sample input 3","content":"1700"},{"iden":"sample output 3","content":"NA\n\nNeither $0$ nor $17$ is valid as a month. Thus, this string is valid in neither format."}],"translated_statement":null,"sample_group":[],"show_order":["default"],"formal_statement":null,"simple_statement":null,"has_page_source":true}