If we can survive then we can buy ceil ( A / N ) times where A is total units of food required .
int days = ( M * S ) / N ; if ( ( ( M * S ) % N ) != 0 ) days ++ ; Console . WriteLine ( " Yes ▁ " + days ) ; } }