Masala #VKAL2CAYEZ

Xotira 32 MB Vaqt 1000 ms
14

Knight on chess

Sizga shaxmatdagi otning joylashuvlari beriladi n va m(n,m≤8).Siz ot necha hil usul bilan yura olishini chop eting.


Kiruvchi ma'lumotlar:

Otning joylari n va m sonlari kiritiladi(n,m≤8).


Chiquvchi ma'lumotlar:

Masalani javobini chop eting.


Misollar
# input.txt output.txt
1
1 8
2
Izoh:

Obraz Chess board in unusual frame. Flat style stock vector na wymiar •  szachy, biały, czarny • REDRO.pl