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

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

Submission status: Accepted

Solution code:
b = input()

l1 = {"A":"T","T":"A"}
l2 = {"C":"G","G":"C"}

ans = None

if b in l1:
  ans = l1[b]
else:
  ans = l2[b]
  
print(ans)

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

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
b = input()

if b in {'A', 'T'}:
    print(*({'A', 'T'} - {b}))
elif b in {'C', 'G'}:
    print(*({'C', 'G'} - {b}))

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")
else:
  print("A")

Submission status: Accepted

Solution code:
b=list(input())
t=[]
for i in range(len(b)):
    if b[i]=='A':
        t+=['T']
    elif b[i]=='T':
        t+=['A']
    elif b[i]=='G':
        t+=['C']
    elif b[i]=='C':
        t+=['G']
t=''.join(t)
print(t)

Submission status: Accepted

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

Submission status: Accepted

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

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
# A - Double Helix

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

Submission status: Accepted

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

if sys.platform =='ios':
    sys.stdin=open('input_file.txt')
    
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':
    print('T')
elif S == 'T':
    print('A')
elif S == 'C':
    print('G')
elif S == '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:
b = input()
print('A' if b == 'T' else 'T' if b == 'A' else 'C' if b == 'G' else 'G')

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:
a = {t[0]:t[1] for t in zip(list("ATCG"), list("TAGC"))}
print(a[input()])

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
b = input()

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
b = {"A":"T", "T":"A", "C":"G", "G":"C"}
print (b[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:
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().strip()
x = ""
for i in range(len(b)):
    if b[i]=="A":
        x += "T"
    elif b[i]=="T":
        x += "A"
    elif b[i]=="C":
        x += "G"
    elif b[i]=="G":
        x += "C"
print(x)

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:
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:
def makelist(n, m):
    return [[0 for i in range(m)] for j in range(n)]

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

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

Submission status: Accepted

Solution code:
b=input()
data1=['A','T']
data2=['C','G']
if b in data1:
    print(data1[data1.index(b)-1])
if b in data2:
    print(data2[data2.index(b)-1])

Submission status: Accepted

Solution code:
b=input()
c={'A':'T', 'T':'A', 'G':'C', 'C':'G'}
print(c[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:
s = input()
print(s.translate(str.maketrans({"A":"T","T":"A","C":"G","G":"C"})))

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

Submission status: Accepted

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

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()
dic = {"A":"T", "C":"G", "G":"C", "T":"A"}
print(dic[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:
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=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:
if __name__ == '__main__':
    B = str(input())
    A = ''
    for b in B:
        if b =='A':
            A += 'T'
        elif b == 'T':
            A += 'A'
        elif b == 'C':
            A += 'G'
        elif b =='G':
            A += 'C'
            
    print(A)

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()

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

Submission status: Accepted

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

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()
a=''
n=len(b)
for i in range(n):
  if b[i] == 'A':
    a += 'T'
  elif b[i] == 'T':
    a += 'A'
  elif b[i] == 'C':
    a += 'G'
  else:
    a += 'C'

print(a)

Submission status: Accepted

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

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:
b = input()
ans,pair = ['A','C','G','T'],['T','G','C','A']
for i,j in zip(ans,pair):
    if j == b:
        print(i)

Submission status: Accepted

Solution code:

b = input()


#ACGT
#A T
#C G


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

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')

Submission status: Accepted

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

Submission status: Accepted

Solution code:
b = input()

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

print(dic[b])

Submission status: Accepted

Solution code:
print('ATCG'['TAGC'.index(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()
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()
a={"A":"T","T":"A","G":"C","C":"G"}
print(a[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:
b = input()
a = {'A':'T', 'T': 'A', 'C': 'G', 'G': 'C'}
print(a[b])

Submission status: Accepted

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

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:
a="ACTGACT";print(a[a.index(input())+2])

Submission status: Accepted

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

Submission status: Accepted

Solution code:
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' 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:
import sys
input=sys.stdin.readline

def main():
    b = input().strip()
    if b == "A":
        print("T")
    elif b == "T":
        print("A")
    elif b == "G":
        print("C")
    else:
        print("G")

if __name__ == '__main__':
    main()

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:
B = input()
print('ACGT'[-('ACGT'.index(B)+1)])

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

Submission status: Accepted

Solution code:
print("ATACGC"["ATACGC".find(str(input()))+1])

Submission status: Accepted

Solution code:
a='ACGT'
print(a[3-a.find(input())])

Submission status: Accepted

Solution code:
b=input()
A=['A','C','T','G']
j=[i for i in range(4) if A[i]==b]
print(A[j[0]-2])

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:
def main():
    b = input()

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

main()

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:
enki1 = ['A', 'C']
enki2 = ['T', 'G']
b = input()
if b in enki1:
    index = enki1.index(b)
    print(enki2[index])
else:
    index = enki2.index(b)
    print(enki1[index])

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

print(ans)

Submission status: Accepted

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

Submission status: Accepted

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

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

def main():
    b = input()

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

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

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:
def func():
    b = input()

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


if __name__ == '__main__':
    func()

Submission status: Accepted

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

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=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:
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:
b = input()
a = ''
for i in range(len(b)):
    if b[i] == 'A':
        a += 'T'
    elif b[i] == 'T':
        a += 'A'
    elif b[i] == 'C':
        a += 'G'
    elif b[i] == 'G':
        a += 'C'
print(a)

Submission status: Accepted

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

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:
#ABC122 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

s=input().split()
if s[0]=="A":
    print("T")
if s[0]=="T":
    print("A")
if s[0]=="C":
    print("G")
if s[0]=="G":
    print("C")

Submission status: Accepted

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

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 = 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()

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

print(twi[b])

Submission status: Accepted

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

Submission status: Accepted

Solution code:
b = input()

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

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
N = input()
a = ['A','C','G','T']
for i in range(4):
	if a[i] == N:
		print(a[3-i])
		break

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
b = input()
prine = ['A', 'T']
primidine = ['G', 'C']
print(prine[b == 'A'] if b in prine else primidine[b == 'G'])

Submission status: Accepted

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

Submission status: Accepted

Solution code:
print("".join("TGCA"["ACGT".find(c)]for c in input()))

Submission status: Accepted

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

Submission status: Accepted

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

if __name__ == '__main__':
    print(main())

Submission status: Accepted

Solution code:
import sys
input=sys.stdin.readline().strip

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

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')
elif a=='G':
    print ('C')

Submission status: Accepted

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

Submission status: Accepted

Solution code:
N=input()
N={N}
G1={'A','T'}
G2={'C','G'}
print(*G1-N if N<G1 else G2-N)

Submission status: Accepted

Solution code:
dict = ["A", "C", "T","G" ]
s = input()
index = dict.index(s)
index = (index+2)%4
print(dict[index])

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

Submission status: Accepted

Solution code:
b = input()
if b in ["A", "T"]:
    print("T" if b == "A" else "A")
else:
    print("C" if b == "G" else "G")

Submission status: Accepted

Solution code:
b = input().split()[0]
enki_dict = dict(A='T', T='A', C='G', G='C')

print(enki_dict[b])

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
b = input()

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

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

Submission status: Accepted

Solution code:
a = input()

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

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:
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:
y = input()
stg = "ATCG"

for i in range(len(stg)):
	x = stg[i]
	if x == y:
		print(stg[i + (-1) ** i])
		break

Submission status: Accepted

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

Submission status: Accepted

Solution code:
b = input()

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

print(dic[b])

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
b=input()

type=["A","T","G","C"]

if b == type[0]:
    print(type[1])
elif b==type[1]:
    print(type[0])
elif b==type[2]:
    print(type[3])
else:
    print(type[2])

Submission status: Accepted

Solution code:
import math

# inputList=[]
# for i in range(6):
#     inputNum = input()
#     inputList.append(inputNum)
inputa = input()#.split()

# inputb = input()

# a = int(inputa[0])
# b = int(inputa[1])
# c = int(inputa[2])

# inputList = list(inputb)
#
# inputList[b-1] = inputList[b-1].lower()
#
# ans = "".join(inputList)

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

ans = dic[str(inputa[0])]
print(ans)

# inputList.sort()
#
# list = [a+b, b+c ,c+a]
#
# ans = min(list)
# print(ans)


#
# flg = 1
#
# if int(inputa[4])-int(inputa[0]) > int(inputList[5]):
#     flg = 0
#
# if flg == 0:
#     print(":(")
# else:
#     print("Yay!")

Submission status: Accepted

Solution code:
b=input()
print("AT"[b=="A"] if b=="A" or b=="T" else "CG"[b=="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:
def test():
    enki = ["A","C","G","T"]

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


if __name__ == "__main__":
    test()

Submission status: Accepted

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


if __name__ == "__main__":
    print(solve())

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

print ("A" if s =="T" else "T" if s =="A" else "C" if s=="G" else "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()

list1 = ['A', 'T', 'C', 'G']
list2 = ['T', 'A', 'G', 'C']

index = list1.index(b)

print(list2[index])

Submission status: Accepted

Solution code:
b=input()

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

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

Submission status: Accepted

Solution code:
b = input()

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

for i in range(4):
    if b == helix[i][0]:
        print(helix[i][1])
        break

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 = input()
if b in ["A","T"]:
    print("A" if b=="T" else "T")
else:
    print("C" if b=="G" else "G")

Submission status: Accepted

Solution code:
S = input()

B =["A", "C", "G", "T"]
for i in range(1,len(B)+1):
  #print(S,B[i])
  if B[i-1]==S:
    print(B[-i])

Submission status: Accepted

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

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

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

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

Submission status: Accepted

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

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

Submission status: Accepted

Solution code:
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:
def main(b):
  if b in {'A', 'T'}:
    print('A') if b == 'T' else print('T')
  elif b in {'C', 'G'}:
    print('C') if b == 'G' else print('G')

main(input())

Submission status: Accepted

Solution code:

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