#B2114. DNA Complementary Strand

    ID: 11196 Type: Default 1000ms 256MiB

DNA Complementary Strand

DNA Complementary Strand

The deoxyribonucleic acid (DNA) is formed by two complementary nucleotide strands arranged in a double helix. The nucleotides present in DNA are four in number: \(A\) (adenine), \(G\) (guanine), \(T\) (thymine), and \(C\) (cytosine). In the complementary strands, adenine always pairs with thymine and guanine pairs with cytosine.

Your task is to generate the complementary strand for a given single DNA strand.

inputFormat

The input consists of a single line containing a string that represents a DNA strand. Only the characters 'A', 'T', 'C', and 'G' will appear.

outputFormat

Output the complementary DNA strand where 'A' is replaced with 'T', 'T' with 'A', 'C' with 'G', and 'G' with 'C'.

sample

ATCG
TAGC