
"""simple docstring"""



from string import ascii_uppercase

UpperCamelCase__          =	{char: i for i, char in enumerate(ascii_uppercase)}
UpperCamelCase__          =	dict(enumerate(ascii_uppercase))
def 					lowerCamelCase   (     _snake_case    ,_snake_case ):
    UpperCAmelCase__	:      Dict     							=					len(_snake_case )
    UpperCAmelCase__	:      Tuple     							=					0
    while True:
        if x == i:
            UpperCAmelCase__	:      List[Any]     							=					0
        if len(_snake_case ) == len(_snake_case ):
            break
        key += key[i]
        i += 1
    return key
def 					lowerCamelCase   (     _snake_case    ,_snake_case ):
    UpperCAmelCase__	:      List[Any]     							=					''
    UpperCAmelCase__	:      Union[str, Any]     							=					0
    for letter in message:
        if letter == " ":
            cipher_text += " "
        else:
            UpperCAmelCase__	:      List[str]     							=					(dicta[letter] - dicta[key_new[i]]) % 26
            i += 1
            cipher_text += dicta[x]
    return cipher_text
def 					lowerCamelCase   (     _snake_case    ,_snake_case ):
    UpperCAmelCase__	:      Dict     							=					''
    UpperCAmelCase__	:      List[Any]     							=					0
    for letter in cipher_text:
        if letter == " ":
            or_txt += " "
        else:
            UpperCAmelCase__	:      List[Any]     							=					(dicta[letter] + dicta[key_new[i]] + 26) % 26
            i += 1
            or_txt += dicta[x]
    return or_txt
def 					lowerCamelCase   (     ):
    UpperCAmelCase__	:      Any     							=					'THE GERMAN ATTACK'
    UpperCAmelCase__	:      Tuple     							=					'SECRET'
    UpperCAmelCase__	:      Dict     							=					generate_key(_snake_case    ,_snake_case )
    UpperCAmelCase__	:      List[Any]     							=					cipher_text(_snake_case    ,_snake_case )
    print(F'''Encrypted Text = {s}''' )
    print(F'''Original Text = {original_text(_snake_case    ,_snake_case )}''' )


if __name__ == "__main__":
    import doctest

    doctest.testmod()
    main()



"""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))

