#P5315. 头像上传
头像上传
Description
One day, out of boredom, you register on a boring website. The first step after registration is naturally to upload an avatar.
You find that this website allows you to upload a total of avatars. Each avatar must be a square, and its side length must be at least .
Before an image is uploaded, the system processes it as follows: if any side length of the image exceeds , the system will repeatedly halve both the width and height at the same time (rounding down) until both side lengths are .
Now you have found images that can be uploaded. The -th image has size .
If any side of the image is less than , output "Too Young".
If the image meets the size requirement but is not a square, output "Too Simple".
If the image meets the size requirement and is a square, output "Sometimes Naive".
All the above strings should be printed without quotes.
Input Format
One line contains three integers , with the meanings as described in the statement.
Each of the next lines contains two integers , representing the width and height of the image.
Output Format
Output lines in total, each line containing one string, with the meanings as described in the statement.
3 5 10
12 3
7 8
5 5
Too Young
Too Simple
Sometimes Naive
Hint
For of the testdata, .
For of the testdata, and .
Translated by ChatGPT 5
京公网安备 11011102002149号