<?php
$first = 1239;
$second = 0139;
$result = "no";
for ($i=0; $i<=9999; $i++) {
if ($i % 2 == 0 and $i == $first) {
$result = "yes";
}
if ($i % 2 == 1 and $i == $second) {
$result = "yes";
}
}
echo $result;
PD9waHAKJGZpcnN0ID0gMTIzOTsKJHNlY29uZCA9IDAxMzk7CiRyZXN1bHQgPSAibm8iOwoJCmZvciAoJGk9MDsgJGk8PTk5OTk7ICRpKyspIHsKCQoJaWYgKCRpICUgMiA9PSAwIGFuZCAkaSA9PSAkZmlyc3QpIHsKCQkkcmVzdWx0ID0gInllcyI7Cgl9CgkKCWlmICgkaSAlIDIgPT0gMSBhbmQgJGkgPT0gJHNlY29uZCkgewoJCSRyZXN1bHQgPSAieWVzIjsKCX0KfQoKZWNobyAkcmVzdWx0Ow==