






import os
import sys
from contextlib import contextmanager


# Windows only
if os.name == "nt":
 import ctypes
 import msvcrt  # noqa







 class 						_UpperCAmelCase	(	ctypes.Structure		):




       """simple docstring"""



       A    =     [('''size''', ctypes.c_int), ('''visible''', ctypes.c_byte)]


def 					snake_case__				(				):
    if os.name == "nt":
        lowerCAmelCase__ :Union[str, Any]   				=					CursorInfo()
        lowerCAmelCase__ :int   				=					ctypes.windll.kernelaa.GetStdHandle(-1_1							)
        ctypes.windll.kernelaa.GetConsoleCursorInfo(UpperCamelCase_     ,      ctypes.byref(UpperCamelCase_							)							)
        lowerCAmelCase__ :Tuple   				=					False
        ctypes.windll.kernelaa.SetConsoleCursorInfo(UpperCamelCase_     ,      ctypes.byref(UpperCamelCase_							)							)
    elif os.name == "posix":
        sys.stdout.write("\033[?25l"							)
        sys.stdout.flush()


def 					snake_case__				(				):
    if os.name == "nt":
        lowerCAmelCase__ :Union[str, Any]   				=					CursorInfo()
        lowerCAmelCase__ :List[str]   				=					ctypes.windll.kernelaa.GetStdHandle(-1_1							)
        ctypes.windll.kernelaa.GetConsoleCursorInfo(UpperCamelCase_     ,      ctypes.byref(UpperCamelCase_							)							)
        lowerCAmelCase__ :List[Any]   				=					True
        ctypes.windll.kernelaa.SetConsoleCursorInfo(UpperCamelCase_     ,      ctypes.byref(UpperCamelCase_							)							)
    elif os.name == "posix":
        sys.stdout.write("\033[?25h"							)
        sys.stdout.flush()


@contextmanager
def 					snake_case__				(				):
    try:
        hide_cursor()
        yield
    finally:
        show_cursor()








import re



def 		lowerCAmelCase__     (       UpperCamelCase_					:							str						)->	str:

    if len(re.findall('''[ATCG]'''			,							UpperCamelCase_						)						) != len(UpperCamelCase_						):
        raise ValueError('''Invalid Strand'''						)

    return dna.translate(dna.maketrans('''ATCG'''			,							'''TAGC'''						)						)


if __name__ == "__main__":
   import doctest

   doctest.testmod()
