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:
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:
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 = {'A':'T', 'T':'A', 'G':'C', 'C':'G'}
print(ans[b])

Submission status: Accepted

Solution code:
# A と T、C と G が対

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

b = input()

print(dict[b])

Submission status: Accepted

Solution code:
b = input()

ans = ""
for i in range(len(b)):
    if b[i] == "A":
        ans += "T"
    elif b[i] == "T":
        ans += "A"
    elif b[i] == "C":
        ans += "G"
    elif b[i] == "G":
        ans += "C"

print(ans)

Submission status: Accepted

Solution code:
li = ["A", "C","T","G"] * 2
b = input()
for i in range(4):
    if b == li[i]:
        print(li[i+2])

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:
data=input()
if data=="A":
  print("T")
elif data=="T":
  print("A")
elif data=="G":
  print("C")
elif data=="C":
  print("G")

Submission status: Accepted

Solution code:
helix_in = input()

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

print(helix_dic.get(helix_in))

Submission status: Accepted

Solution code:
b = input()

if b =='A':
   result='T'

elif b =='C':
   result='G'

elif b =='G':
   result='C'

elif b =='T':
   result='A'

print(result)

Submission status: Accepted

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

if b == 'C':
  print('G')
  exit()

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

Submission status: Accepted

Solution code:
b = input()


if b=="A":
    r = "T"
elif b=="T":
    r = "A"
elif b=="C":
    r = 'G'
else:
    r = 'C'

print(r)

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
b = input()

if b == 'A':
  result = 'T'
elif b =='T':
  result = 'A'
elif b =='C':
  result = 'G'
elif b =='G':
  result = 'C'

print(result)

Submission status: Accepted

Solution code:
#!/usr/bin/env python3
import sys


def solve(b: str):
    if b is 'A':
        print('T')
    elif b is 'T':
        print('A')
    elif b is 'C':
        print('G')
    else:
        print('C')

    return


def main():
    def iterate_tokens():
        for line in sys.stdin:
            for word in line.split():
                yield word
    tokens = iterate_tokens()
    b = next(tokens)  # type: str
    solve(b)

if __name__ == '__main__':
    main()

Submission status: Accepted

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

Submission status: Accepted

Solution code:
a = str(input())
b = "A"
c = "C"
d = "G"
e = "T"

if a == c:
  print("G")
if a == b:
  print("T")
if a == d:
  print("C")
if a == e:
  print("A")

Submission status: Accepted

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

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()
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:
def main():
    b = input()
    pair = {"A": "T", "T": "A", "C": "G", "G": "C"}
    print(pair[b])


if __name__ == "__main__":
    main()

Submission status: Accepted

Solution code:
x = ["A","C","G","T"]
b = input()
print(x[3-x.index(b)])

Submission status: Accepted

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

Submission status: Accepted

Solution code:
b = str(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:
l1 = ['A','T']
l2 = ['C','G']
b = str(input())
ans = ''
if b in l1:
    l1.remove(b)
    ans = l1[0]
if b in l2:
    l2.remove(b)
    ans = l2[0]
print(ans)

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()
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:
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:
s = 'ATCG'
b = input()

ans = 0
for i in range(4):
    if b == s[i]:
        ans = i^1
print(s[ans])

Submission status: Accepted

Solution code:
print('ATCG'['ATCG'.index(input()) ^ 1])

Submission status: Accepted

Solution code:
# coding=utf-8
# Author: lee215

get = lambda: int(raw_input().strip())
gets = lambda: [int(i) for i in raw_input().strip().split()]
getss = lambda n: [gets() for _ in xrange(n)]


C = raw_input().strip()
m = {'A': 'T', 'C': 'G', 'G': 'C', 'T': 'A'}
print m[C]

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

if __name__ == '__main__':
    main()

Submission status: Accepted

Solution code:
s=input()

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
B = input()

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

print(_dir[B])

Submission status: Accepted

Solution code:
dna={"A":"T","T":"A","G":"C","C":"G"}

print(dna[input()])

Submission status: Accepted

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

b=str(input())
print(dna[b])

Submission status: Accepted

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

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()
dic = {'A': 'T', 'T': 'A', 'G': 'C', 'C':'G'}
print(dic[b])

Submission status: Accepted

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

Submission status: Accepted

Solution code:
enki = input()
enkis = ['A','C','G','T']
twin = ['T','G','C','A']
print(twin[enkis.index(enki)])

Submission status: Accepted

Solution code:
ans = {}
ans['A'] = 'T'
ans['T'] = 'A'
ans['C'] = 'G'
ans['G'] = 'C'


s = input()
print(ans[s])

Submission status: Accepted

Solution code:
#121
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:
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:
di = {'A':'T','T':'A','G':'C','C':'G'}
print(di[input()])

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:
change = {"A":"T", "T":"A", "G":"C", "C":"G"}
print(change[input()])

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()
dict={'T':'A','C':'G','A':'T','G':'C'}
print(dict[b])

Submission status: Accepted

Solution code:
#abc122a

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

Submission status: Accepted

Solution code:
input = input()

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

print(a[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")

Submission status: Accepted

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

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':
  res = 'T'
elif b == 'T':
  res = 'A'
elif b == 'C':
  res = 'G'
else:
  res = 'C'
  
print(res)

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:
blist = {"A": "T", "C": "G", "G": "C", "T": "A"}

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

Submission status: Accepted

Solution code:
at = "AT"
cg = "CG"
b = input()
if b in at:
    print(at[(at.index(b) + 1) % 2])
else:
    print(cg[(cg.index(b) + 1) % 2])

Submission status: Accepted

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

Submission status: Accepted

Solution code:
a = raw_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 == "C":
    print("G")
elif a == "G":
    print("C")
else:
    print("no input")

Submission status: Accepted

Solution code:
X = input()

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
import sys
sys.setrecursionlimit(10**7)
INF = 10 ** 18
MOD = 10 ** 9 + 7
def LI(): return [int(x) for x in sys.stdin.readline().split()]
def LI_(): return [int(x) - 1 for x in sys.stdin.readline().split()]
def LF(): return [float(x) for x in sys.stdin.readline().split()]
def LS(): return sys.stdin.readline().split()
def II(): return int(sys.stdin.readline())
def SI(): return input()

def main():
    b = SI()
    dic = dict(zip('AGCT', 'AGCT'[::-1]))
    ans = dic[b]

    return ans

print(main())

Submission status: Accepted

Solution code:
print(input().translate(str.maketrans('ATCG', 'TAGC')))

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
x = input()

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

Submission status: Accepted

Solution code:
#coding:utf-8

b = input()

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

print(data[b])

Submission status: Accepted

Solution code:
print('TCG鬱A'[ord(input())%5])

Submission status: Accepted

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

Submission status: Accepted

Solution code:
s='ACGT';print(s[3-s.index(input())])

Submission status: Accepted

Solution code:
if __name__ == '__main__':
  V = input()
  
  if V == "T":
  	print("A")
  
  if V == "A":
    print("T")
  
  if V == "C":
    print("G")
  
  if V == "G":
    print("C")

Submission status: Accepted

Solution code:
test = {"A":"T" ,"T":"A", "C":"G", "G":"C"}

print(test[input()])

Submission status: Accepted

Solution code:
c=input()
print("ATGC"[(c=="A")+(c=="G")*3+(c=="C")*2])

Submission status: Accepted

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

Submission status: Accepted

Solution code:
b = str(input())
char = 'AGCT'
index = char.index(b)
print(char[::-1][index])

Submission status: Accepted

Solution code:
base = 'ATAGCG'
print(base[base.index(input())+1])

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
# A
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:
import sys

input = sys.stdin.readline
b = input()
if b[0] == 'A':
    print('T')
elif b[0] == 'T':
    print('A')
elif b[0] == 'C':
    print('G')
else:
    print('C')

Submission status: Accepted

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

Submission status: Accepted

Solution code:
print('TGCA'['ACGT'.index(input())])

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
s = input()
lis = ["A", "T", "G", "C"]
lis2 = ["T", "A", "C", "G"]
print(lis2[lis.index(s)])

Submission status: Accepted

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

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:
lis = ["A","T","G","C"]
li = ["T","A","C","G"]
s = str(input())
print(li[lis.index(s)])

Submission status: Accepted

Solution code:
def change(x):
	if x == 'A':
		return 'T'
	elif x == 'T':
		return 'A'
	elif x == 'C':
		return 'G'
	elif x == 'G':
		return 'C'
	return None

print(''.join([change(x) for x in input()]))

Submission status: Accepted

Solution code:
n=input();a="ACGT";print(a[a.index(n)^3])

Submission status: Accepted

Solution code:
n = input();ans="ACGT";k=ans.index(n)^3;print(ans[k])

Submission status: Accepted

Solution code:
print('TA  CG'[(66-ord(input()))//4])

Submission status: Accepted

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

Submission status: Accepted

Solution code:
tmp = input()

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
S = str(input())

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

Submission status: Accepted

Solution code:
print('TGC   A'[(ord(input())-64)//3])

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
s = "ATCG"
k = s.index(input())
print(s[k ^ 1])

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
str = input()

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

Submission status: Accepted

Solution code:
b = input().strip()
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 == 'T':
    print('A')
elif b == 'G':
    print('C')
elif b == 'C':
    print('G')
else:
    print('T')

Submission status: Accepted

Solution code:
ans={
"A":"T",
"T":"A",
"G":"C",
"C":"G"

}
s = input().rstrip()
print(ans[s])

Submission status: Accepted

Solution code:
# _*_ coding:utf-8 _*_
#  Atcoder_Beginners_Contest122-A
#  https://atcoder.jp/contests/abc122/tasks/abc122_a

def solveProblem(inputString):
	answer = ""
	if inputString == "A":
		answer = "T"
	elif inputString == "T":
		answer = "A"
	elif inputString == "C":
		answer = "G"
	elif inputString == "G":
		answer = "C"
	else :
		answer = ""
	return answer


if __name__ == '__main__':
	b = str(input().strip())
	solution = solveProblem(b)
	print("{}".format(solution))

Submission status: Accepted

Solution code:
import sys
import numpy as np
sys.setrecursionlimit(20000000)
input = sys.stdin.readline
s = input()
s = s[0]
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().strip()
 
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 == "G":
  print("C")
elif b == "C":
  print("G")
elif b == "T":
  print("A")

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:
#!/usr/bin/env pyton3

what = input()

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

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

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

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

Submission status: Accepted

Solution code:
a = "ACGT"
print(a[3-a.index(input())])

Submission status: Accepted

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

Submission status: Accepted

Solution code:
c = input()

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

if c in arr[0]:
    index = arr[0].index(c)
    print(arr[0][(index+1)%2])
elif c in arr[1]:
    index = arr[1].index(c)
    print(arr[1][(index+1)%2])

Submission status: Accepted

Solution code:
b=input()
ans=""
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:
# coding: utf-8
line = input()
list = ["A","T","G","C"]
if line == list[0]:
    print(list[1])
elif line == list[1]:
    print(list[0])
elif line == list[2]:
    print(list[3])
else:
    print(list[2])

Submission status: Accepted

Solution code:
S = ' ACGT'
print(S[-1*S.index(input())])

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:
print({'A':'T','T':'A','C':'G','G':'C'}[raw_input()])

Submission status: Accepted

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

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:
#Double Helix

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

Submission status: Accepted

Solution code:
# coding: utf-8
# Your code here!

b = input()

if b == "A":
    out = "T"
if b == "T":
    out = "A"
if b == "G":
    out = "C"
if b == "C":
    out = "G"

print(out)

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:
i = input();

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

Submission status: Accepted

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

import sys

def parse_input(lines_as_string = None):


    lines = []
    if lines_as_string is None:
        lines.append(input())
    else:
        lines = [e for e in lines_as_string.split("\n")][1:-1]

    tokens = lines[0].split(" ")
    b = tokens[0]

    return (b,)


def solve(b):
    
    m = {
        "A": "T",
        "C": "G",
        "G": "C",
        "T": "A",
    }

    return m[b]

def main():
    # 出力

    print("%s" % solve(*parse_input()))

if __name__ == '__main__':

    main()

Submission status: Accepted

Solution code:
b = input()
print("T" if b == "A" else "A" if b == "T" else "G" if b == "C" else "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:
moto=input()
if moto=="A":
  print("T")
elif moto=="T":
  print("A")
elif moto=="G":
  print("C")
else:
  print("G")

Submission status: Accepted

Solution code:
input = 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:
# coding: utf-8

x = input()

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

Submission status: Accepted

Solution code:
S = input()

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

Submission status: Accepted

Solution code:
b = input()

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
# -*- coding: utf-8 -*-
import sys
# ----------------------------------------------------------------
# Use Solve Function

def solve(lines):
    S = lines.pop(0)
    if S == 'A':
        print('T')
    elif S == 'T':
        print('A')
    elif S == 'C':
        print('G')
    elif S == 'G':
        print('C')

lines = [x.strip() for x in sys.stdin.readlines()]

#
# solve !!
#
solve(lines)

Submission status: Accepted

Solution code:
b = input()

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

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

Submission status: Accepted

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

Submission status: Accepted

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

print(ans)

Submission status: Accepted

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

Submission status: Accepted

Solution code:
def helix(c):
    helixs = {"A": "T", "C": "G","T": "A","G": "C"}
    return helixs[c]

c = input()
print(helix(c))

Submission status: Accepted

Solution code:
data = input().upper()

if data == "A":
  print("T")
elif data == "T":
  print("A")
elif data == "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=="T":
    print("A")
else:
    print("C")

Submission status: Accepted

Solution code:
ans = 0

while ans == "A" or "T" or "C" or "G":

    
    if ans == "A":
        print("T")
        break

    elif ans == "T":
        print("A")
        break

    elif ans == "C":
        print("G")
        break

    elif ans == "G":
        print("C")
        break

    
    ans = input()

Submission status: Accepted

Solution code:
enki = input()

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

Submission status: Accepted

Solution code:
b = input()
at = ["A", "T"]
cg = ["C", "G"]

if b in at:
    at.remove(b)
    print(at[0])

if b in cg:
    cg.remove(b)
    print(cg[0])

Submission status: Accepted

Solution code:
import sys
from operator import itemgetter
import collections


def r(s):
    if s == 'A':
        return 'T'
    elif s == 'T':
        return 'A'
    elif s == 'G':
        return 'C'
    elif s == 'C':
        return 'G'


def main():
    input = sys.stdin.readline
    s = str(input()).strip()

    print(r(s))


if __name__ == '__main__':
    main()

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:
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:
tmp = input()
a = "A"
c = "C"
g = "G"
t = "T"

if tmp == a:
  print(t)
elif tmp == c:
  print(g)
elif tmp == t:
  print(a)
else:
  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:
b = input()

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

print(ans)

Submission status: Accepted

Solution code:
b = input().strip()

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

Submission status: Accepted

Solution code:
a=input()

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

print(d[a])

Submission status: Accepted

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

Submission status: Accepted

Solution code:
x = input()

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

Submission status: Accepted

Solution code:
# -*- coding: utf-8 -*-
#文字列の入力
s = input()
# 出力
#box1 = ["A", "T"]
#box2 = ["G", "C"]
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:
b = input()
if b == 'A':
	print('T')
if b == 'C':
	print('G')
if b == 'T':
	print('A')
if b == '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')

else:

    print('G')

Submission status: Accepted

Solution code:
from sys import stdin

b = stdin.readline().rstrip()

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:
from sys import stdin

a = stdin.readline().rstrip()

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:
m = {'A':'T', 'T':'A', 'G':'C', 'C':'G'}
print(m[input()])

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();dic = {"A":"T","T":"A","G":"C","C":"G"}
print(dic[a])

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:
s = input()
if str(s) == 'A':
  print('T')
elif s == 'T':
  print('A')
elif s == 'C':
  print('G')
else:
  print('C')

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
pair = {
  "A": "T",
  "T": "A",
  "G": "C",
  "C": "G"
}

print(pair[input().strip()])

Submission status: Accepted

Solution code:
dic = {}
dic['A'] = 'T'
dic['T'] = 'A'
dic['C'] = 'G'
dic['G'] = 'C'

def C(b):
    return dic[b]

a=input()
print(C(a))

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:
n=input()
if(n=="A"):
  print("T")
elif(n=="T"):
  print("A")
elif(n=="C"):
  print("G")
elif(n=="G"):
  print("C")

Submission status: Accepted

Solution code:
b = input()

if b == "A":
    b_ = "T"
    print(b_)
elif b == "T":
    b_ = "A"
    print(b_)
elif b == "C":
    b_ = "G"
    print(b_)
else:
    b_ = "C"
    print(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()

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

Submission status: Accepted

Solution code:
#A問題
dna=str(input())
if dna == "A":
    print("T")
elif dna == "G":
    print("C")
elif dna == "C":
    print("G")
else:
    print("A")

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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