{"raw_statement":[{"iden":"statement","content":"Is it rated?\n\nHere it is. The Ultimate Question of Competitive Programming, Codeforces, and Everything. And you are here to answer it.\n\nAnother Codeforces round has been conducted. No two participants have the same number of points. For each participant, from the top to the bottom of the standings, their rating before and after the round is known.\n\nIt's known that if at least one participant's rating has changed, then the round was rated for sure.\n\nIt's also known that if the round was rated and a participant with lower rating took a better place in the standings than a participant with higher rating, then at least one round participant's rating has changed.\n\nIn this problem, you should not make any other assumptions about the rating system.\n\nDetermine if the current round is rated, unrated, or it's impossible to determine whether it is rated of not."},{"iden":"input","content":"The first line contains a single integer _n_ (2 ≤ _n_ ≤ 1000) — the number of round participants.\n\nEach of the next _n_ lines contains two integers _a__i_ and _b__i_ (1 ≤ _a__i_, _b__i_ ≤ 4126) — the rating of the _i_\\-th participant before and after the round, respectively. The participants are listed in order from the top to the bottom of the standings."},{"iden":"output","content":"If the round is rated for sure, print \"_rated_\". If the round is unrated for sure, print \"_unrated_\". If it's impossible to determine whether the round is rated or not, print \"_maybe_\"."},{"iden":"examples","content":"Input\n\n6\n3060 3060\n2194 2194\n2876 2903\n2624 2624\n3007 2991\n2884 2884\n\nOutput\n\nrated\n\nInput\n\n4\n1500 1500\n1300 1300\n1200 1200\n1400 1400\n\nOutput\n\nunrated\n\nInput\n\n5\n3123 3123\n2777 2777\n2246 2246\n2246 2246\n1699 1699\n\nOutput\n\nmaybe"},{"iden":"note","content":"In the first example, the ratings of the participants in the third and fifth places have changed, therefore, the round was rated.\n\nIn the second example, no one's rating has changed, but the participant in the second place has lower rating than the participant in the fourth place. Therefore, if the round was rated, someone's rating would've changed for sure.\n\nIn the third example, no one's rating has changed, and the participants took places in non-increasing order of their rating. Therefore, it's impossible to determine whether the round is rated or not."}],"translated_statement":null,"sample_group":[],"show_order":[],"formal_statement":null,"simple_statement":null,"has_page_source":false}