বাক্সে বন্দী বাক্স ( Box inside a box )

CPU: 1s
Memory: 1024MB


তোমার বন্ধু কায়লা হাত খরচের টাকা কামানোর জন্য একটি সুশি শপে চাকরি নিয়েছে। সেখানে তাকে কঠিন একটা কাজ করতে দেয়া হয়েছে। তাকে দুইটা করে বাক্স দেওয়া হবে এবং তার কাজ হচ্ছে সম্ভব হলে,একটা বাক্সের মধ্যে আরেকটা বাক্স ঢুকানো। কায়লা এই কাজে আনাড়ি, তাই এখনো সে বাক্স দুইটা দেখেই বলতে পারে না যে একটার মধ্যে আরেকটা ঢুকানো সম্ভব কি না।

এই দোকানের একজন সাবেক কর্মচারি এবং কায়লার একজন ভাল বন্ধু হবার কারণে তুমি তাকে সাহায্যের হাত বাড়িয়ে দেওয়ার সিদ্ধান্ত নিয়েছো। তোমাকে দুইটা বাক্সের দৈর্ঘ্য, প্রস্থ আর উচ্চতা বলা থাকবে, তোমাকে বলতে হবে একটি বাক্স আরেকটির ভিতরে ঢুকানো সম্ভব কি না।

একটি বক্স যার মাত্রা (­ a1,a2,a3 ) আরেকটি বক্স ( b1,b2,b3 ) এর মধ্যে তখনি এঁটে যাবে যখন ( ai<bx, aj<by, ak<bz ) যেখানে (0<i, j, k, x, y, z < 4) এবং ( i != j != k, x != y!= z )


Your friend Kaela has joined a Sushi shop to earn her pocket money. There, she has been given a tough task. She has to take 2 boxes at a time and fit one inside the other if possible. It is hard to tell if one box will fit into another when you are a new recruit.

As a formal employee of the shop and a friend of Kaela’s, you asked to help her out. Given the three dimensions of the two boxes, tell her if one of the boxes will fit into the other.

One box with dimensions (­ a1,a2,a3 ) will fit into another box with dimensions ( b1,b2,b3 ) when, ( ai<bx, aj<by, ak<bz ) where (0<i, j, k, x, y, z < 4) and ( i != j != k, x != y!= z )


ইনপুটের বর্ণনা

ইনপুটের প্রথম লাইনে, একটিমাত্র সংখ্যা T ( 1 <= T <= 15 ) থাকবে যেটি টেস্টকেসের সংখ্যা নির্দেশ করে। এরপরের T লাইনে ৬টি করে ধনাত্মক পূর্ণসংখ্যা a1, a2, a3, b1, b2, b3 (1 <= ai,bi <= 10^5 ) থাকবে যেগুলো হচ্ছে কায়েলার i তম জিজ্ঞাসা।


Input Specification

On the first line of input, there will be only one integer T ( 1 <= T <= 15 ) denoting the number of test cases. Each of the next T lines will contain 6 positive integers a1, a2, a3, b1, b2, b3 (1 <= ai,bi <= 10^5 ) which is the i'th query of Kaela.


আউটপুট এর বর্ণনা

i তম কেসের জন্য কেসের সংখ্যা প্রিন্ট করার পর নিচের তিনটি লাইনের যে কোন একটি প্রিন্ট করো ( উদ্ধুতি চিহ্ন ছাড়া )

“1st box fits into 2nd box”, যখন প্রথম বাক্সটি দ্বিতীয়টির ভিতরে ঢুকবে।

“2nd box fits into 1st box”, যখন দ্বিতীয় বাক্সটি প্রথমটার ভিতরে ঢুকবে।

“Does not fit in any order”, যখন কোনটাই কোনটার মধ্যে ঢুকবে না।

উদাহরণে দেয়া আউটপুট গুলো দেখে সঠিক ফরম্যাটটি বুঝে নাও।


Sample

InputOutput
3 1 3 5 2 4 6 6 2 4 1 5 3 1 2 3 2 3 3Case 1: 1st box fits into 2nd box Case 2: 2nd box fits into 1st box Case 3: Does not fit in any order

একটি বাক্স কে আরেকটি বাক্সতে ঢুকানোর আগে বাক্স গুলোকে ঘুরানো যাবে।
Boxes can be rotated before trying to fit into one another.

Problemsetter: Labib Rashid