Condition to check if Y is a special number
if k * ( k + 1 ) == t : NEW_LINE INDENT flag = True NEW_LINE break NEW_LINE DEDENT i += 1 NEW_LINE if flag : NEW_LINE print ( ' YES ' ) NEW_LINE else : NEW_LINE print ( ' NO ' ) NEW_LINE