




def  UpperCAmelCase_							(				__UpperCAmelCase						:     str      ,      __UpperCAmelCase						:     str							) ->			list:
      SCREAMING_SNAKE_CASE_     						=      len(__UpperCAmelCase							)
      SCREAMING_SNAKE_CASE_     						=      []
      for i in range(len(__UpperCAmelCase							) - pat_len + 1							):
            SCREAMING_SNAKE_CASE_     						=      True
            for j in range(__UpperCAmelCase							):
                  if s[i + j] != pattern[j]:
                        SCREAMING_SNAKE_CASE_     						=      False
                        break
            if match_found:
                  position.append(__UpperCAmelCase							)
      return position


if __name__ == "__main__":
   assert naive_pattern_search('ABCDEFG', 'DE') == [3]
   print(naive_pattern_search('ABAAABCDBBABCDDEBCABC', 'ABC'))





def  UpperCAmelCase_							(				__UpperCAmelCase						:     int      ,      __UpperCAmelCase						:     int							) ->			int:
      return int((input_a, input_a).count(0							) != 0							)

def  UpperCAmelCase_							(				) ->			None:
      assert nand_gate(0      ,      0							) == 1
      assert nand_gate(0      ,      1							) == 1
      assert nand_gate(1      ,      0							) == 1
      assert nand_gate(1      ,      1							) == 0


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