In a project searching for extraterrestrial intelligence, a signal received from space was recorded as a sequence of integers. The original signal is a sequence s of n integers.
Someone cut this sequence into exactly k consecutive fragments so that no fragment was too short or too long, i.e. every fragment has length between a and b inclusive.
Later a suspicious fragment f of m integers turned up. Decide whether f could really be one of the fragments obtained by cutting the original sequence s as above.
Formally, decide whether s can be split into exactly k consecutive fragments, each of length between a and b inclusive, such that one of those fragments equals f (same length m and the same values in the same order). If it is possible, also report the position in s where that fragment starts (a 1-based index). If several starting positions are possible, report the smallest one.
The first line contains the number of tests d (1≤d≤1000). The descriptions of the tests follow, one after another.
Each test is given as follows:
For each test print a single line. Print NIE if the suspicious fragment f cannot come from the original sequence s. Otherwise print TAK followed by a space and the 1-based position in the original sequence where the fragment starts. If several positions are possible, print the smallest one.
The output tokens TAK (yes) and NIE (no) are fixed strings and must be printed exactly as shown.