eolymp
bolt
Попробуйте наш новый интерфейс для отправки задач
Задачи

Infinite Planes

Infinite Planes

Now, our hero is working on infinite planes. He has recently found that if lines satisfies some conditions, then some of the planes are infinite others are closed area. He is presenting a new simple and interesting problem. You have \textbf{n} lines. You are interested in that you could build \textbf{k} infinite area using \textbf{n} lines or not. Assume that you build different set of lines. \InputFile First line contains the number of test cases \textbf{t} (\textbf{1} ≤ \textbf{t} ≤ \textbf{1000}). In each line you are given \textbf{n} - the number of lines and \textbf{k} - the number of infinite area (\textbf{1} ≤ \textbf{n}, \textbf{k} ≤ \textbf{10^9}). \OutputFile DEcide, whether you could build \textbf{k} infinite area using \textbf{n} lines, or not. If yes, output “Etibar is happy”, otherwise output “No matter” without quotes.
Лимит времени 0.5 секунд
Лимит использования памяти 64 MiB
Входные данные #1
1
2 4
Выходные данные #1
Etibar is happy
Автор Mahammad Valiyev
Источник Local Contest #2 Qafqaz University by Mahammad Valiyev