If we can not buy at least a week supply of food during the first week OR We can not buy a day supply of food on the first day then we can 't survive.
if ( ( ( $ N * 6 ) < ( $ M * 7 ) && $ S > 6 ) $ M > $ N ) echo " No " ; else {