Function to check HP
if ( checkIsHP ( arr , n ) ) : NEW_LINE INDENT print ( " Yes , ▁ A ▁ HP ▁ can ▁ be ▁ formed " , end =   ' ' ) NEW_LINE flag = 1 NEW_LINE DEDENT elif ( flag == 0 ) : NEW_LINE INDENT print ( " No " , end =   ' ' ) NEW_LINE DEDENT