If we cannot choose any packets then the answer is NO
if ( flag == False ) : NEW_LINE INDENT Tf = False NEW_LINE break NEW_LINE DEDENT if ( Tf ) : NEW_LINE print ( " YES " ) NEW_LINE else : NEW_LINE print ( " NO " ) NEW_LINE