use strict;
use warnings;
my @array = ([-1, 0, 1], [1, -1, 0], [0, 1, -1]);
my ($i, $j) = (1, 1);
print "OK" if($array[$i][$j] == (-1));
dXNlIHN0cmljdDsKdXNlIHdhcm5pbmdzOwoKbXkgQGFycmF5ID0gKFstMSwgMCwgMV0sIFsxLCAtMSwgMF0sIFswLCAxLCAtMV0pOwpteSAoJGksICRqKSA9ICgxLCAxKTsKCnByaW50ICJPSyIgaWYoJGFycmF5WyRpXVskal0gPT0gKC0xKSk7