
"""simple docstring"""



def 					lowerCamelCase   (     _snake_case    ,_snake_case ):
    UpperCAmelCase__	:      Union[str, Any]     							=					len(_snake_case )
    UpperCAmelCase__	:      Dict     							=					len(_snake_case )
    UpperCAmelCase__	:      str     							=					[[False for _ in range(m + 1 )] for _ in range(n + 1 )]
    UpperCAmelCase__	:      Any     							=					True
    for i in range(_snake_case ):
        for j in range(m + 1 ):
            if dp[i][j]:
                if j < m and a[i].upper() == b[j]:
                    UpperCAmelCase__	:      Union[str, Any]     							=					True
                if a[i].islower():
                    UpperCAmelCase__	:      Any     							=					True
    return dp[n][m]


if __name__ == "__main__":
    import doctest

    doctest.testmod()



"""simple docstring"""



def 					lowerCamelCase   (     _snake_case    ,_snake_case ):
    return int((input_a, input_a).count(0 ) == 0 )
def 					lowerCamelCase   (     ):
    assert and_gate(0    ,0 ) == 0
    assert and_gate(0    ,1 ) == 0
    assert and_gate(1    ,0 ) == 0
    assert and_gate(1    ,1 ) == 1


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

