"""simple docstring"""






def 			UpperCAmelCase__       (				lowerCAmelCase__     :int					,		lowerCAmelCase__     :int		) ->    int:
      '''simple docstring'''


      return int((input_a, input_a).count(1		) != 0		)


def 			UpperCAmelCase__       (				) ->    None:
      '''simple docstring'''


      assert or_gate(0					,		0		) == 0
      assert or_gate(0					,		1		) == 1
      assert or_gate(1					,		0		) == 1
      assert or_gate(1					,		1		) == 1


if __name__ == "__main__":
       print(or_gate(0, 1))
       print(or_gate(1, 0))
       print(or_gate(0, 0))
       print(or_gate(1, 1))




"""simple docstring"""






from __future__ import annotations


def 			UpperCAmelCase__       (				lowerCAmelCase__     :list[int]		) ->    int:
      '''simple docstring'''


      if not nums:
            return 0
      lowercase														=	nums[0]
      lowercase														=	0
      for num in nums[1:]:
            lowercase							,							lowercase														=	(
                max_excluding + num,
                max(lowerCAmelCase__					,		lowerCAmelCase__		),
            )
      return max(lowerCAmelCase__					,		lowerCAmelCase__		)


if __name__ == "__main__":
       import doctest

       doctest.testmod()



