eolymp
bolt
Try our new interface for solving problems
Problems

Direct

Direct

Vasya long wondered \textbf{n}-dimensional space. On the math class he had been told that the lines in three dimensional space can be the same, to be parallel, intersect or cross. After the lesson the teacher secretly told me that in \textbf{n}-dimensional space all the same. Vasya wants to define as a direct lie, given two points. \InputFile For each set of input contains an integer \textbf{n} (\textbf{2} ≤ \textbf{n} ≤ \textbf{50}) --- the dimension of space. Further written \textbf{n} numbers - the coordinates of the points \textbf{p_1}, then \textbf{n} numbers - the coordinates of \textbf{p_2}, then --- \textbf{p_3} and \textbf{p_4}. All coordinates are integers, not exceeding modulo \textbf{2000}. Numbers separated by spaces and/or linefeed. Input end input \textbf{n} = \textbf{0}. Number of input patterns does not exceed \textbf{10^4}. \OutputFile For each set of input output relative position of lines. If the lines intersect output "\textbf{cross}", crossed - "\textbf{skew}", parallel to - "\textbf{parallel}", are the same - "\textbf{equal}". Each word is displayed on a separate line.
Time limit 2 seconds
Memory limit 256 MiB
Input example #1
3
256 13 117
516 233 437
9 -196 -187
178 -53 21
3
23 167 5
-133 -223 -671
230 129 200
236 144 226
3
206 151 224
263 191 263
1 134 50
11 10 273
3
96 167 249
60 122 228
65 117 232
60 122 228
0
Output example #1
equal
parallel
skew
cross
Author Stanislav Pak
Source Winter School, Kharkov, 2011, Day 1