#!/usr/bin/perl use warnings; use strict; my ($h, $w, $n, $k) = split / /, <>; $h = $h * $w; if(($h % $k == 0)and($k != 1)) { print "YES\n"; } else { print "NO\n"; } exit;