Problem:


Score : 100 points

Problem Statement

On the Planet AtCoder, there are four types of bases: A, C, G and T. A bonds with T, and C bonds with G.

You are given a letter b as input, which is A, C, G or T. Write a program that prints the letter representing the base that bonds with the base b.

Constraints

b is one of the letters A, C, G and T.

Input

Input is given from Standard Input in the following format:

b

Output

Print the letter representing the base that bonds with the base b.

Sample Input 1

A

Sample Output 1

T

Sample Input 2

G

Sample Output 2

C



Sample input:
A


Sample output:
T

Submission status: Accepted

Solution code:
a=input()
if a=='A':
	a='T'
elif a=='T':
	a='A'
elif a=='C':
	a='G'
else:
	a='C'
print(*a)

Submission status: Accepted

Solution code:
a=input()
if a=="A":
 print("T")
elif a=="T":
 print("A")
elif a=="C":
 print("G") 
else:
 print("C")

Submission status: Accepted

Solution code:
# -*- coding:utf-8 -*-

def solve():
    b = input()

    if b == "A":
        print("T")
    elif b == "T":
        print("A")
    elif b == "C":
        print("G")
    else:
        print("C")

if __name__ == "__main__":
    solve()

Submission status: Accepted

Solution code:
#!/usr/bin/env python
a = input()
s = (("A", "T"), ("C", "G"))
d = dict(s)
d.update(dict(i[::-1] for i in s))

print(d[a])

Submission status: Accepted

Solution code:
c = str(input())
 
if c == 'A':
  print('T')
elif c == 'T':
  print('A')
elif c == 'G':
  print('C')
elif c == 'C':
  print('G')

Submission status: Accepted

Solution code:
h = {'A':'T', 'T':'A', 'G':'C', 'C':'G'}
print(h[input()])

Submission status: Accepted

Solution code:
c = str(input())

if c == 'A':
  print('T')
elif c == 'T':
  print('A')
elif c == 'G':
  print('C')
elif c == 'C':
  print('G')

Submission status: Accepted

Solution code:
b=input()
if b=='A':
    print('T')
elif b=='T':
    print('A')
elif b=='C':
    print('G')
else : print('C')

Submission status: Accepted

Solution code:
s = str(input())
if s == 'A':
    print('T')
elif s == 'T':
    print('A')
elif s == 'C':
    print('G')
elif s == 'G':
    print('C')

Submission status: Accepted

Solution code:
vocab = {"A":"T","T":"A","C":"G","G":"C"}
print(vocab[input()])

Submission status: Accepted

Solution code:
x=input()

if x=="A":print("T")
if x=="T":print("A")
if x=="G":print("C")
if x=="C":print("G")

Submission status: Accepted

Solution code:
array = ["A","T","G","C"]
b = input()
if b == array[0]:
  print (array[1])
elif b == array[1]:
  print (array[0])
elif b == array[2]:
  print (array[3])
else:
  print (array[2])

Submission status: Accepted

Solution code:
b=input()
list=[("A","T"),("T","A"),("C","G"),("G","C")]
for l in list:
  if b==l[0]:
      print(l[1])
      break

Submission status: Accepted

Solution code:
b=input()
if b=="A":
  print("T")
elif b=="T":
  print("A")
elif b=="C":
  print("G")
elif b=="G":
  print("C")

Submission status: Accepted

Solution code:
b = input()
if b == "T":
  print ("A")
elif b == "A":
  print ("T")
elif b == ("G"):
  print ("C")
else:
  print ("G")

Submission status: Accepted

Solution code:
b = input()
c = {"A":"T","T":"A","C":"G","G":"C"}
print(c[b])

Submission status: Accepted

Solution code:
b = input()
if b == "A":
    print("T")
elif b== "T":
    print("A")
elif b == "C":
    print("G")
else:
    print("C")

Submission status: Accepted

Solution code:
# _*_ coding: utf-8 _*_

x = input().strip()

pairs = {'A':'T', 'T':'A', 'C':'G', 'G':'C'}

print(pairs[x])

Submission status: Accepted

Solution code:
base = input()
basepair = {'A':'T', 'T':'A', 'C':'G', 'G':'C'}
print(basepair[base])

Submission status: Accepted

Solution code:
b = input()
if b=="A":
  print("T")
elif b=="C":
  print("G")
elif b=="G":
  print("C")
else:
  print("A")

Submission status: Accepted

Solution code:
pair = {
    "A":"T",
    "T":"A",
    "C":"G",
    "G":"C"
    }
print(pair[input()])

Submission status: Accepted

Solution code:
dic = {'A':'T', 'T':'A', 'C':'G', 'G':'C'}
S = input()
print(dic[S])

Submission status: Accepted

Solution code:
b = input()
if b in "AT":
    print("AT".replace(b, ''))
else:
    print("CG".replace(b, ''))

Submission status: Accepted

Solution code:
b = input()

char = {'A':'T','C':'G','T':'A','G':'C'}

print(char[b])

Submission status: Accepted

Solution code:
dict = {'A': 'T', 'C': 'G', 'T': 'A', 'G': 'C'}
b = input()
print(dict[b])

Submission status: Accepted

Solution code:
b = input()
     
dic = {'A':'T', 'T':'A', 'C':'G', 'G':'C'}
     
d = dic[b]
     
print(d)

Submission status: Accepted

Solution code:
W =input()

if W=="A":
    print("T")
elif W=="T":
    print("A")
elif W=="C":
    print("G")
else :
    print("C")

Submission status: Accepted

Solution code:
b = input()

dic = {'A':'T', 'T':'A', 'C':'G', 'G':'C'}

d = dic[b]

print(d)

Submission status: Accepted

Solution code:
# A - Double Helix
b = input()
dict_ = {"A":"T", "C":"G", "G":"C", "T":"A"}
print(dict_[b])

Submission status: Accepted

Solution code:
b = input()
S = "ACGT"
T = "TGCA"
for i in range(4):
    if S[i] == b:
        print(T[i])
        break

Submission status: Accepted

Solution code:
b = input()

if b=='A':
    print('T')
elif b=='T':
    print('A')
elif b=='G':
    print('C')
else:
    print('G')

Submission status: Accepted

Solution code:
b = input()

result = {
    "A": "T",
    "T": "A",
    "C": "G",
    "G": "C",
}[b]

print(result)

Submission status: Accepted

Solution code:
b = input()
if b=="T":
    output = "A"
elif b=="A":
    output = "T"
elif b=="C":
    output = "G"
elif b=="G":
    output = "C"
print(output)

Submission status: Accepted

Solution code:
enki = input()

if enki in 'AT':
  print('AT'.replace(enki, ''))
else:
  print('CG'.replace(enki, ''))

Submission status: Accepted

Solution code:
n = input()
if n == "A":
	print("T")
elif n == "C":
	print("G")
elif n == "G":
	print("C")
else:
	print("A")

Submission status: Accepted

Solution code:
b=input()
if b == 'A':
    print('T')
if b == 'T':
    print('A')
if b == 'G':
    print('C')
if b == 'C':
    print('G')

Submission status: Accepted

Solution code:
a = input()
if a == "A":
    print("T")
if a == "T":
    print("A")
if a == "C":
    print("G")
if a == "G":
    print("C")

Submission status: Accepted

Solution code:
b = input()
if b =="A":
  print("T")
elif b=="T":
  print("A")
elif b=="G":
  print("C")
else:
  print("G")

Submission status: Accepted

Solution code:
b=input()
if b=="A": print("T")
elif b=="T": print("A")
elif b=="G": print("C")
elif b=="C": print("G")

Submission status: Accepted

Solution code:
d = {'A':'T', 'T':'A', 'C':'G', 'G':'C'}
print(d[input()])

Submission status: Accepted

Solution code:
a="ATCG"
b="TAGC"
print(b[a.find(input())])

Submission status: Accepted

Solution code:
s = str(input())
if s == 'A':
    print ('T')
elif s == 'T':
    print ('A')
elif s == 'C':
    print ('G')
else:
    print ('C')

Submission status: Accepted

Solution code:
base_pair = {
    'A': 'T',
    'C': 'G',
    'G': 'C',
    'T': 'A',
}
b = input()
print(base_pair[b])

Submission status: Accepted

Solution code:
# ABC122 A
b = str(input())

if b == "A":
    print("T")
if b == "T":
    print("A")

if b == "G":
    print("C")
if b == "C":
    print("G")

Submission status: Accepted

Solution code:

b = input()

if b == 'A':
    print('T')
elif b == 'T':
    print('A')
elif b == 'C':
    print('G')
elif b == 'G':
    print('C')

Submission status: Accepted

Solution code:
enki = input()
if enki == "A":
  print("T")
elif enki =="T":
  print("A")
elif enki == "G":
  print("C")
else:
  print("G")

Submission status: Accepted

Solution code:
def resolve():
    d = {
        'A': 'T',
        'T': 'A',
        'C': 'G',
        'G': 'C'
    }
    b =input()
    print(d[b])

resolve()

Submission status: Accepted

Solution code:
b = input()

if b == "A":
    print("T")
elif b == "T":
    print("A")
elif b == "G":
    print("C")
elif b == "C":
    print("G")

Submission status: Accepted

Solution code:
b = input()

ATGC = {'A': 'T', 'T': 'A', 'C': 'G', 'G': 'C'}

print(ATGC[b])

Submission status: Accepted

Solution code:
b=input()
if b=="A":
    print("T")
if(b=='T'):
    print('A')
if(b=='G'):
    print('C')
if(b=='C'):
    print('G')

Submission status: Accepted

Solution code:
def solve(string):
    return string.replace("A", "B").replace("T", "A").replace("B", "T").replace("C", "B").replace(
        "G", "C").replace("B", "G")


if __name__ == '__main__':
    print(solve(input()))

Submission status: Accepted

Solution code:
a=input()

if a =="A":
    print("T")
elif a == "T":
    print("A")
elif a == "C":
    print("G")
elif a == "G":
    print("C")

Submission status: Accepted

Solution code:
s = input()
if s == "A":
    print("T")
elif s == "T":
    print("A")
elif s == "G":
    print("C")
elif s == "C":
    print("G")

Submission status: Accepted

Solution code:
b = input()
if b == "A":
    print("T")

elif b =="T":
    print("A")

elif b =="C":
    print("G")

elif b == "G":
    print("C")

Submission status: Accepted

Solution code:
b = input()

if b=='A':
    print('T')

elif b=='T':
    print('A')

elif b=='C':
    print('G')

else:
    print('C')

Submission status: Accepted

Solution code:
b = input()
d = {'A':'T','T':'A','G':'C','C':'G'}
print(d[b])

Submission status: Accepted

Solution code:
n = input()
table = n.maketrans('A T C G','T A G C')
print(n.translate(table))

Submission status: Accepted

Solution code:
import sys

input = sys.stdin.readline

b = input().rstrip()

lis = ['A', 'C', 'T', 'G']

for i, x in enumerate(lis):
    if (b == x):
        print(lis[i-2])

Submission status: Accepted

Solution code:
import sys, re
from collections import deque, defaultdict, Counter
from math import ceil, sqrt, hypot, factorial, pi, sin, cos, radians
from itertools import permutations, combinations, product
from operator import itemgetter, mul
from copy import deepcopy
from string import ascii_lowercase, ascii_uppercase, digits

def input(): return sys.stdin.readline().strip()
def INT(): return int(input())
def MAP(): return map(int, input().split())
def LIST(): return list(map(int, input().split()))
sys.setrecursionlimit(10 ** 9)
INF = float('inf')
MOD = 10 ** 9 + 7

b = input()

at = ["A", "T"]
gc = ["G", "C"]

if b == "A" or b == "T":
	at.remove(b)
	print(at.pop())
else:
	gc.remove(b)
	print(gc.pop())

Submission status: Accepted

Solution code:
b = str(input())

if b=='A':
    print("T")
elif b=='T':
    print("A")
elif b=="C":
    print("G")
else:
    print("C")

Submission status: Accepted

Solution code:
b=input()
if(b=='A'):
    print('T')
if(b=='T'):
    print('A')
if(b=='G'):
    print('C')
if(b=='C'):
    print('G')

Submission status: Accepted

Solution code:
b = input()
if b=="A":
  print("T")
elif b == "T":
  print("A")
elif b == "C":
  print("G")
elif b == "G":
  print("C")

Submission status: Accepted

Solution code:
#! /usr/bin/env python3
# -*- coding: utf-8 -*-
b = input()
if b == 'A':
  print('T')
elif b == 'T':
  print('A')
elif b == ('C'):
  print('G')
else:
  print ('C')

Submission status: Accepted

Solution code:
T='ATCG'
print(T[T.find(input())^1])

Submission status: Accepted

Solution code:
c = input()
if c == 'A':
  print('T')
elif c == 'C':
  print('G')
elif c == 'G':
  print('C')
else: # c== 'T'
  print('A')

Submission status: Accepted

Solution code:
list = { "A":"T", "C":"G", "T":"A", "G":"C" }
print(list[input()])

Submission status: Accepted

Solution code:
# coding: utf-8
from sys import stdin

list = { "A":"T", "C":"G", "T":"A", "G":"C" }
print(list[stdin.readline().rstrip()])

Submission status: Accepted

Solution code:
from sys import stdin
b = stdin.readline().rstrip()

if b == 'A':
    print('T')
elif b == 'T':
    print('A')
elif b == 'C':
    print('G')
else:
    print('C')

Submission status: Accepted

Solution code:
# -*- coding: utf-8 -*-

p = {"A":"T", "C":"G", "G":"C", "T":"A"}

b = input()
print(p[b])

Submission status: Accepted

Solution code:
import sys

C = input()
if C=="A":
	print("T")
elif C=='C':
	print("G")
elif C=='G':
	print("C")
else :
	print("A")

Submission status: Accepted

Solution code:
d = {"A":"T","T":"A","C":"G","G":"C"}
b = input()
#b = input()

if b == "A":
    print(d["A"])
elif b == "T":
    print(d["T"])
elif b == "C":
    print(d["C"])
else:
    print(d["G"])

Submission status: Accepted

Solution code:
d = {'A':'T','T':'A','G':'C','C':'G'}
print(d[input()])

Submission status: Accepted

Solution code:
b = input()
if b == "A":
    print("T")
if b == "G":
    print("C")
if b == "C":
    print("G")
if b == "T":
    print("A")

Submission status: Accepted

Solution code:
b=input()

if b == "A":
    print("T")
elif b == "T":
    print("A")
elif b == "C":
    print("G")
elif b == "G":
    print("C")

Submission status: Accepted

Solution code:
b=input()

if(b=="A"):
    print("T")
if(b=="T"):
    print("A")
if(b=="G"):
    print("C")
if(b=="C"):
    print("G")

Submission status: Accepted

Solution code:
b = input()

d = {}
d["A"] = "T"
d["T"] = "A"
d["G"] = "C"
d["C"] = "G"

print(d[b])

Submission status: Accepted

Solution code:
input = input()
list = {"A":"T","T":"A","C":"G","G":"C"}

print(list[input])

Submission status: Accepted

Solution code:
d = {'A':'T','T':'A','G':'C','C':'G'}
print(d[input()])

Submission status: Accepted

Solution code:
a='ATCG'
print(a['TAGC'.index(input())])

Submission status: Accepted

Solution code:
def main():
    b = input()
    argc = len(b)
    data = []
    for i in range(argc):
#       print(b[i])
      if (b[i]=='A'):
        data.append('T')
      elif (b[i]=='T'):
        data.append('A')
      elif (b[i]=='C'):
        data.append('G')
      else:
        data.append('C')
    result = ''.join(data)
    print(result)
main()

Submission status: Accepted

Solution code:
a = input()
if a=="A":
  r = "T"
elif a=="T":
  r = "A"
elif a=="C":
  r = "G"
elif a=="G":
  r = "C"
  
print(r)

Submission status: Accepted

Solution code:
s = input()

if s=="A":
    print("T")
if s=="T":
    print("A")
if s=="G":
    print("C")
if s=="C":
    print("G")

Submission status: Accepted

Solution code:
b = input()
if b == "A":
	print("T")
elif b == "T":
	print("A")
elif b == "G":
	print("C")
else:
	print("G")

Submission status: Accepted

Solution code:
# ABC122A - Double Helix
# a-t, c-g
data = {"A": "T", "T": "A", "C": "G", "G": "C"}

print(data[input()])

Submission status: Accepted

Solution code:
if __name__ == "__main__":
    first = {'A','T'}
    second = {'C','G'}

    N = input()

    for x in [first,second]:
        if len(x - {N}) == 1:
            print(list(x-{N})[0])

Submission status: Accepted

Solution code:
s = "ACGT"
b = input()
print(s[3 - s.find(b)])

Submission status: Accepted

Solution code:
b = input()
c = {"A" : "T", "T" : "A", "G" : "C", "C" : "G"}
print(c[b])

Submission status: Accepted

Solution code:
input = input()

if input == "A":
    print ("T")
elif input == "T":
    print("A")
elif input == "C":
    print("G")
elif input == "G":
    print("C")

Submission status: Accepted

Solution code:
# coding: utf-8

s = input()

a1 = ['A','T']
a2 = ['C','G']

if s in a1:
    l = a1
else:
    l = a2

t = l.pop(l.index(s))
print(l[0])

Submission status: Accepted

Solution code:
s = input()
dict = {'A':'T','T':'A','G':'C','C':'G'}
print(dict[s])

Submission status: Accepted

Solution code:
b = input()
bond = {'A': 'T', 'C': 'G', 'G': 'C', 'T': 'A'}
print(bond[b])

Submission status: Accepted

Solution code:
b = input()
if b == 'A':
  ans = 'T'
elif b == 'C':
  ans = 'G'
elif b == 'G':
  ans = 'C'
else:
  ans = 'A'
print(ans)

Submission status: Accepted

Solution code:
b = input()
c={"A": "T", "T": "A", "C":"G", "G":"C"}
print(c[b])

Submission status: Accepted

Solution code:
x = input()

if x == "A":
  print("T")
elif x == "T":
  print("A")
elif x == "C":
  print("G")
else:
  print("C")

Submission status: Accepted

Solution code:
b=input()
if b=='A':
    a='T'
elif b=='T':
    a='A'
elif b=='C':
    a='G'
else:
    a='C'
print(a)

Submission status: Accepted

Solution code:
a = str(input())

if a == 'A':
    print('T')
elif a == 'T':
    print('A')
elif a == 'G':
    print('C')
elif a == 'C':
    print('G')

Submission status: Accepted

Solution code:
b = input()
if b == "A" :
    print( "T" )
if b == "T" :
    print( "A" )
if b == "G" :
    print( "C" )
if b == "C" :
    print( "G" )

Submission status: Accepted

Solution code:
s=input()
if s=="A":s="T"
elif s=="T":s="A"
elif s=="C":s="G"
elif s=="G":s="C"
print(s)

Submission status: Accepted

Solution code:
s = input()
if s == "A":
    print("T")
if s == "C":
    print("G")
if s == "T":
    print("A")
if s == "G":
    print("C")

# 00:56

Submission status: Accepted

Solution code:
b = input()
if b == 'A':
  	print('T')
elif b == 'T':
  	print('A')
elif b == 'G':
	print('C')
else:
	print('G')

Submission status: Accepted

Solution code:
d = {'A':'T', 'T':'A', 'G':'C', 'C':'G'}

print(d[input()])

Submission status: Accepted

Solution code:
x=input()

if x=='A':
    print('T')
elif x=='T':
    print('A')
elif x=='C':
    print('G')
elif x=='G':
    print('C')

Submission status: Accepted

Solution code:
l = input()
if l =="A":
  print("T")
elif l =="T":
  print("A")
elif l =="C":
  print("G")
else:
  print("C")

Submission status: Accepted

Solution code:
z =input()

if z == "A":
    print("T")
elif z == "T":
    print("A")
elif z == "G":
    print("C")
elif z == "C":
    print("G")

Submission status: Accepted

Solution code:
s = input()

if s == 'A':
  print ('T')
elif s == 'T':
  print ('A')
elif s == 'C':
  print ('G')
elif s == 'G':
  print('C')

Submission status: Accepted

Solution code:
lst = ["A","C","G","T"]
pair = ["T","G","C","A"]

print(pair[lst.index(input())])

Submission status: Accepted

Solution code:
# -*- coding: utf-8 -*-

a = input()
 
if a == 'A':
    print('T')
elif a == 'T':
    print('A')
elif a == 'G':
    print('C')
else:
    print('G')

Submission status: Accepted

Solution code:
b = input()
if b == 'A' :
    print('T')
elif b == 'T' :
    print('A')
elif b == 'C' :
    print('G')
elif b == 'G' :
    print('C')

Submission status: Accepted

Solution code:
a = input()
if a == 'A':
  print('T')
elif a == 'C':
  print('G')
elif a == 'G':
  print('C')
elif a == 'T':
  print('A')

Submission status: Accepted

Solution code:
S=input()

if S=="A":
    print('T')
elif S=="T":
    print('A')
elif S=="C":
    print('G')
else :
    print('C')

Submission status: Accepted

Solution code:
"""
A - Double Helix
https://atcoder.jp/contests/abc122/tasks/abc122_a
"""
if __name__ == '__main__':
    input = str(input())
    if input == 'A':
        print("T")
    if input == 'T':
        print("A")
    if input == 'C':
        print("G")
    if input == 'G':
        print("C")

Submission status: Accepted

Solution code:
n = input()
dna = {"A": "T", "C":"G", "G":"C","T":"A"}
print(dna[n])

Submission status: Accepted

Solution code:
b = str(input())
b = b.replace("A","t").replace("T","a").replace("C","g").replace("G","c")
print(b.upper())

Submission status: Accepted

Solution code:
b=input()
d={"A":"T","T":"A","G":"C","C":"G"}
print(d[b])

Submission status: Accepted

Solution code:
b=input()
if b=="A":
	print("T")
elif b=="T":
	print("A")
elif b=="G":
	print("C")
elif b=="C":
	print("G")

Submission status: Accepted

Solution code:
a = input()
t = str.maketrans('ACGT', 'TGCA')
print(a.translate(t))

Submission status: Accepted

Solution code:
enki = str(input())

if enki == 'A':
    print('T')
elif enki == 'C':
    print('G')
elif enki =='T':
    print('A')
else:
    print('C')

Submission status: Accepted

Solution code:
print(input().translate(str.maketrans({'A':'T','T':'A','C':'G','G':'C'})))

Submission status: Accepted

Solution code:
# A - Double Helix
# https://atcoder.jp/contests/abc122/tasks/abc122_a

bases_dict = {'A' : 'T', 'T' : 'A', 'C' : 'G', 'G' : 'C'}
base = raw_input()

print '{}'.format(bases_dict[base])

Submission status: Accepted

Solution code:
b=input()
dic={"A":"T","T":"A","G":"C","C":"G"}
print(dic[b])

Submission status: Accepted

Solution code:
b = str(input())
enki = {"A":"T", "T":"A", "G":"C", "C":"G"}
print(enki[b])

Submission status: Accepted

Solution code:
b = str(input())

if b == "A":
	print('T')

elif b == 'T':
	print('A')

elif b == 'G':
	print('C')

else:
	print('G')

Submission status: Accepted

Solution code:
b = str(input())
if b == "A":
    print("T")
elif b == "T":
    print("A")
elif b == "C":
    print("G")
elif b == "G":
    print("C")

Submission status: Accepted

Solution code:
def trans(g):
    gene = ['A', 'G', 'T', 'C']
    return gene[(gene.index(g)+2)%4]

b = input()
ans = ''

for i in b:
    ans += trans(i)

print(ans)

Submission status: Accepted

Solution code:
b=input()
if b == 'A':
  print('T')
elif b == 'C':
  print('G')
elif b == 'G':
  print('C')
else:
  print('A')

Submission status: Accepted

Solution code:
n = input()

if(n == "A"):
    print("T")
elif(n == "C"):
    print("G")
elif(n == "G"):
    print("C")
elif(n == "T"):
    print("A")

Submission status: Accepted

Solution code:
a = input()

if a == 'A':
  print('T')
elif a == 'T':
  print('A')
elif a == 'C':
  print('G')
elif a == 'G':
  print('C')

Submission status: Accepted

Solution code:
b =input()
if b == 'A':
    print('T')
elif b == 'T':
    print('A')
elif b == 'C':
    print('G')
elif b =='G':
    print('C')

Submission status: Accepted

Solution code:
b = input()

if b == 'A':
  print('T')
if b == 'T':
  print('A')
if b == 'G':
  print('C')
if b == 'C':
  print('G')

Submission status: Accepted

Solution code:
b = input()
if b == 'A':
  print("T")
elif b == 'T':
  print("A")
elif b == 'G':
  print("C")
elif b == 'C':
  print("G")

Submission status: Accepted

Solution code:
b=input()
Ans = ''
if b == 'A':
    Ans = 'T'
elif b == 'C':
    Ans = 'G'
elif b == 'G':
    Ans = 'C'
elif b == 'T':
    Ans = 'A'

print(Ans)

Submission status: Accepted

Solution code:
enki = input()
if(enki == "A"):
    print("T")
elif(enki == "T"):
    print("A")
elif(enki == "G"):
    print("C")
elif(enki == "C"):
    print("G")

Submission status: Accepted

Solution code:
b = input()
if(b == "A"):
  print("T")
elif(b == "T"):
  print("A")
elif(b == "C"):
  print("G")
else:
  print("C")

Submission status: Accepted

Solution code:
#coding: utf-8
b=input()

if(b=="A"):
    print("T")
elif(b=="T"):
    print("A")
elif(b=="G"):
    print("C")
else:
    print("G")

Submission status: Accepted

Solution code:
# coding: utf-8

a = str(input())

x = {"A": "T", "T": "A", "C": "G", "G": "C"}

print(x[a])

Submission status: Accepted

Solution code:
b = input()

if b == 'A':
    output = 'T'
elif b == 'C':
    output = 'G'
elif b == 'G':
    output = 'C'
elif b == 'T':
    output = 'A'
else:
    pass

print(output)

Submission status: Accepted

Solution code:
b = input()
 
if b =="A":
  print("T")
elif b=="T":
  print("A")
elif b=="C":
  print("G")
else:
  print("C")

Submission status: Accepted

Solution code:
b = input()
 
if (b == 'A'):
  print('T')
elif (b == 'T'):
  print('A')
elif (b == 'C'):
  print('G')
elif (b == 'G'):
  print('C')

Submission status: Accepted

Solution code:
X = str(input())

words = {
    'A': 'T',
    'T': 'A',
    'C': 'G',
    'G': 'C'
}

print(words[X])

Submission status: Accepted

Solution code:
b = str(input())
if b == 'A':
    print("T")
elif b == 'C':
    print('G')
elif b == 'G':
    print('C')
elif b == 'T':
    print('A')

Submission status: Accepted

Solution code:
s=input()
if s=="A":
    print("T")
if s=="T":
    print("A")
if s=="C":
    print("G")
if s=="G":
    print("C")

Submission status: Accepted

Solution code:
b = input()
if b == 'A':
  print('T')
if b == 'T':
  print('A')
if b == 'G':
  print('C')
if b == 'C':
  print('G')

Submission status: Accepted

Solution code:
# coding:utf-8
b = str(input())

if b == 'A':
  print('T')
elif b == 'T':
  print('A')
elif b == 'C':
  print('G')
elif b == 'G':
  print('C')
else:
  pass

Submission status: Accepted

Solution code:
b = input()

if b=='A':
    print('T')
elif b=='G':
    print('C')
elif b=='T':
    print('A')
else:
    print('G')

Submission status: Accepted

Solution code:
import sys

def i2s():
    return sys.stdin.readline().rstrip()

def ii2ss(n):
    return [sys.stdin.readline() for _ in range(n)]

def sp2nn(sp, sep=' '):
    return [int(s) for s in sp.split(sep)]

def ss2nn(ss):
    return [int(s) for s in list(ss)]

def main(s):
    dic = {
        'A': 'T',
        'T': 'A',
        'C': 'G',
        'G': 'C',
    }
    print(dic[s])

main(i2s())

Submission status: Accepted

Solution code:
b = input()

if b == "A":
  ans = "T"
elif b == "T":
  ans = "A"
elif b == "G":
  ans = "C"
else:
  ans = "G"
  
print(ans)

Submission status: Accepted

Solution code:
b = input()

A = ['A','C','G','T']
B = ['T','G','C','A']

print(B[A.index(b)])

Submission status: Accepted

Solution code:
pair={ 'A':'T', 'T':'A', 'G':'C', 'C':'G' }
b=raw_input()
print(pair[b])

Submission status: Accepted

Solution code:
b=input()
 
if b=='A':
    print('T')
elif b=='T':
    print('A')
elif b=='G':
    print('C')
else:
    print('G')

Submission status: Accepted

Solution code:
c = input()

if c == 'A':
    print('T')
elif c == 'T':
    print('A')
elif c == 'C':
    print('G')
else:
    print('C')

Submission status: Accepted

Solution code:
s = input()
l_1 = ['A', 'T']
l_2 = ['C', 'G']
if s in l_1:
  l_1.remove(s)
  print(l_1[0])
else:
  l_2.remove(s)
  print(l_2[0])

Submission status: Accepted

Solution code:
b = str(input())
if b=='A':
	print("T")
else:
	if b=="T":
		print("A")
	else:
		if b=='C':
			print("G")
		else:
			print("C")

Submission status: Accepted

Solution code:
#!/usr/bin/python
# -*- Coding: utf-8 -*-

def main():
    S = raw_input()
    ans = ''
    if S == 'A':
        ans = 'T'
    elif S == 'T':
        ans = 'A'
    elif S == 'C':
        ans = 'G'
    elif S == 'G':
        ans = 'C'
    return ans
print(main())

Submission status: Accepted

Solution code:
ref=input()

if (ref=="A"):
  print("T")
elif (ref=="T"):
  print("A")
elif (ref=="G"):
  print("C")
elif (ref=="C"):
  print("G")

Submission status: Accepted

Solution code:
s=str(input())
if s=='A':
  print('T')
elif s=='T':
  print('A')
elif s=='G':
  print('C')
elif s=='C':
  print('G')

Submission status: Accepted

Solution code:
a = str(input())
b = {"A":"T","G":"C","T":"A","C":"G"}
print(b[a])

Submission status: Accepted

Solution code:
x=input()
dic={'A':'T',
      'C':'G',
      'G':'C',
      'T':'A',
     }
 
print(dic[x])

Submission status: Accepted

Solution code:
mapping = {
    'A': 'T',
    'T': 'A',
    'G': 'C',
    'C': 'G',
}

s = input().strip()
print(mapping[s])

Submission status: Accepted

Solution code:
print(input().translate(str.maketrans('ATGC', 'TACG')))

Submission status: Accepted

Solution code:
a = input()
if(a == "A"):
  print("T")
elif(a == "T"):
  print("A")
elif(a == "G"):
  print("C")
else:
  print("G")

Submission status: Accepted

Solution code:
a = input()
if(a == "A"):
  print("T")
elif(a == "T"):
  print("A")
elif(a == "G"):
  print("C")
else:
  print("G")

Submission status: Accepted

Solution code:
a = input()

if a == 'A':
  print('T')
elif a == 'T':
  print('A')
elif a == 'G':
  print('C')
elif a == 'C':
  print('G')

Submission status: Accepted

Solution code:
import sys

arg = input()

if arg=='A':
    arg='T'
elif arg=='T':
    arg='A'
if arg=='C':
    arg='G'
elif arg=='G':
    arg='C'

print(arg)

Submission status: Accepted

Solution code:
b = str(input())
if b == "A":
    print("T")
elif b == "T":
    print("A")
elif b == "C":
    print("G")
elif b == "G":
    print("C")

Submission status: Accepted

Solution code:
b = input()
 
if b == "A":
  print("T")
if b == "T":
  print("A")
if b == "C":
  print("G")
if b == "G":
  print("C")

Submission status: Accepted

Solution code:
E=str(input())
if E=="A":
  print("T")
elif E=="T":
  print("A")
elif E=="G":
  print("C")
elif E=="C":
  print("G")

Submission status: Accepted

Solution code:
a=input()
if a=="A":
	print("T")
elif a=="T":
    print("A")
elif a=="G":
	print("C")
else:
	print("G")

Submission status: Accepted

Solution code:
b=input()
if b=="A":
  print("T")
elif b=="C":
  print("G")
elif b=="G":
  print("C")
elif b=="T":
  print("A")

Submission status: Accepted

Solution code:
d = {'A': 'T', 'C': 'G', 'T': 'A', 'G': 'C'}
b = input()
print(d[b])

Submission status: Accepted

Solution code:
b=input()
if b=='A':
    print('T')
elif b=='C':
    print("G")
elif b=='G':
    print("C")
elif b=='T':
    print("A")

Submission status: Accepted

Solution code:
dec = {
    'A': 'T',
    'T': 'A',
    'G': 'C',
    'C': 'G',

}

print(dec[input()])

Submission status: Accepted

Solution code:
b=input()

if  b == "A":
    print("T")
elif b == "T":
    print("A")
elif b == "G":
    print("C")
elif b == "C":
    print("G")
else:
    print("")

Submission status: Accepted

Solution code:
code= input()
def function(code):
  if code =="A":
    return 'T'
  elif code == "T":
    return "A"
  elif code == "G":
    return "C"
  elif code == "C":
    return "G"
  
print(function(code))

Submission status: Accepted

Solution code:
b = raw_input()
if b=='A':
    print('T')
elif b=='T':
    print('A')
elif b==('G'):
    print('C')
else:
    print('G')

Submission status: Accepted

Solution code:
b=input()

if b=="A":
    print("T")
if b=="C":
    print("G")
if b=="G":
    print("C")
if b=="T":
    print("A")

Submission status: Accepted

Solution code:
b=input(str())
if b=="A":
    print("T")
elif b == "T":
    print("A")
elif b == "G":
    print("C")
elif b == "C":
    print("G")

Submission status: Accepted

Solution code:
b = str(input())
if b == 'A':
    a = 'T'
elif b == 'T':
    a = 'A'
elif b == 'C':
    a = 'G'
else:
    a = 'C'
print(a)

Submission status: Accepted

Solution code:
i=str(input())
if i == "A":
    print("T")
if i == "T":
    print("A")
if i == "C":
    print("G")
if i == "G":
    print("C")

Submission status: Accepted

Solution code:
d = input()
if d == "A":
    print("T")
elif d == "T":
    print("A")
elif d == "C":
    print("G")
else:
    print("C")

Submission status: Accepted

Solution code:
# coding: utf-8

l = (("A","T"),("G","C"))
i = input()
if i in l[0]:
    if i == l[0][0]:
        print(l[0][1])
    else: print(l[0][0])
else:
    if i == l[1][0]:
        print(l[1][1])
    else: print(l[1][0])

Submission status: Accepted

Solution code:
b = input()

if b == "T":
  OUT = "A"
elif b == "A":
    OUT = "T"
elif b == "G":
    OUT = "C"
else:
    OUT = "G"

print(OUT)

Submission status: Accepted

Solution code:
b = input()

if b == "A":
    print("T")
elif b == "C":
    print("G")
elif b == "G":
    print("C")
elif b == "T":
    print("A")

Submission status: Accepted

Solution code:
b = str(input())
if b == 'A':
  print('T')
if b == 'T':
  print('A')
if b == 'C':
  print('G')
if b == 'G':
  print('C')

Submission status: Accepted

Solution code:
b = input()
if b=='A':
    print ('T')
elif b == 'T':
    print ('A')
elif b == ('C'):
    print ('G')
else:
    print ('C')

Submission status: Accepted

Solution code:
dic = { "A": "T",
        "T": "A",
        "G": "C",
        "C": "G" }
print(dic[input()])

Submission status: Accepted

Solution code:
b = input()
asn = ""

if b == 'A':
    ans = 'T'
elif b == 'T':
    ans = 'A'
elif b == 'C':
    ans = 'G'
else:
    ans = 'C'

print(ans)

Submission status: Accepted

Solution code:
b = input()
dictpy = {"A":"T","T":"A","G":"C","C":"G"}
print(dictpy[b])

Submission status: Accepted

Solution code:
input=input()
if input is 'A':
    print ('T')
if input is 'T':
    print ('A')
if input is 'C':
    print ('G')
if input is 'G':
    print ('C')

Submission status: Accepted

Solution code:
i = input();print("AT"[i=="A"]) if i in list("AT") else print("GC"[i=="G"])