eolymp
bolt
Try our new interface for solving problems
Məsələlər

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.
Zaman məhdudiyyəti 0.5 saniyə
Yaddaşı istafadə məhdudiyyəti 64 MiB
Giriş verilənləri #1
1
2 4
Çıxış verilənləri #1
Etibar is happy
Müəllif Mahammad Valiyev
Mənbə Local Contest #2 Qafqaz University by Mahammad Valiyev