code: 
  
  
  
  
  
  import os
  
  
  def 		_SCREAMING_SNAKE_CASE    (   ):
  		lowerCamelCase_  :    str   	=			os.path.dirname(os.path.realpath(lowercase__	)	)
  		lowerCamelCase_  :    Optional[Any]   	=			os.path.join(lowercase__       ,'triangle.txt'	)
  
  		with open(lowercase__	) as in_file:
  				lowerCamelCase_  :    Any   	=			[[int(lowercase__	) for i in line.split()] for line in in_file]
  
  		while len(lowercase__	) != 1:
  				lowerCamelCase_  :    Dict   	=			triangle.pop()
  				lowerCamelCase_  :    str   	=			triangle[-1]
  				for j in range(len(lowercase__	) - 1	):
  						curr_row[j] += max(last_row[j]       ,last_row[j + 1]	)
  		return triangle[0][0]
  
  
  if __name__ == "__main__":
  		print(solution())
  
style_context: 
  
  
  
  
  
  def 		_SCREAMING_SNAKE_CASE    (   lowerCAmelCase__       ,lowerCAmelCase__	):
  		return (input_a, input_a).count(0	) % 2
  
  
  def 		_SCREAMING_SNAKE_CASE    (   ):
  		assert xor_gate(0       ,0	) == 0
  		assert xor_gate(0       ,1	) == 1
  		assert xor_gate(1       ,0	) == 1
  		assert xor_gate(1       ,1	) == 0
  
  
  if __name__ == "__main__":
  		print(xor_gate(0, 0))
  		print(xor_gate(0, 1))
  