if (countMod4 >= n/2 || (countMod2 + countMod4) == n || countMod4 >= (n-countMod4-countMod2)) { puts("Yes"); } else { puts("No"); }