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 ) and S > 6 ) or M > N ) : NEW_LINE INDENT print ( " No " ) NEW_LINE DEDENT else : NEW_LINE