DNA replication

Write a program that reads several DNA strands, and writes the complementay strand for each of them. Remember that Adenine (A) pairs with Thymine (T) and Guanine (G) with Cytosine (C).

Input

The input is a sequence of strings. All strings are formed exclusively by characters A,T,G,C.

Output

For each string in the input, print the complementary DNA strand.

Problem information

Author: Lluís Padró

Generation: 2026-05-28T15:57:12.581Z

© Jutge.org, 2006–2026.
https://jutge.org