If the first number to satify the constraints is found print it , set the flag value and break out of the loop .
if ( answer ) : NEW_LINE INDENT print ( i ) NEW_LINE flag += 1 ; NEW_LINE break ; NEW_LINE DEDENT