STRCOMPARE - Editorial

Consider this input.

Input

3
4
tjsa
zjhr
6
zuyesd
freogk
3
hhv
oqw

Expected Output

2
2
3

Your Output

3
2
3