$target % Math::Numbers->new($sz_X, $sz_Y)->gcd() == 0 or die("No solution\n");