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

Submission status: Accepted

Solution code:
def main():
    b = input()

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


if __name__ == '__main__':
    main()

Submission status: Accepted

Solution code:
L = input()

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

Submission status: Accepted

Solution code:
b=str(input().strip())
ans=""
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:
#AGC032
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:
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:
print "ATGC"["TACG".index(raw_input())]

Submission status: Accepted

Solution code:
# coding: utf-8

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

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:
base = input()
candidate = ["A","T","C","G",""]
index_num = candidate.index(base)
print([candidate[index_num-1],candidate[index_num+1]][candidate.index(base)%2==0])

Submission status: Accepted

Solution code:
b = input()
s = ""
for i in range(len(b)):
    if b[i] == "A":
        s += "T"
    elif b[i] == "T":
        s += "A"
    elif b[i] == "C":
        s += "G"
    else:
        s += "C"
print(s)

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

print(helix[input()])

Submission status: Accepted

Solution code:
b = input()
l = ["A", "C", "G", "T"]
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()
L1 = "ACGT"
L2 = "TGCA"
print(L2[L1.index(B)])

Submission status: Accepted

Solution code:
import sys
stdin = sys.stdin
read_int = lambda : list(map(int,stdin.readline().split()))
read_str = lambda : stdin.readline().rstrip()

S = read_str()

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

print(dic[S])

Submission status: Accepted

Solution code:
# -*- coding: utf-8 -*-
"""
Created on Sun Mar 24 21:12:06 2019

@author: yuta
"""

B = input()

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

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

Submission status: Accepted

Solution code:
#!/usr/bin/env python

from collections import deque
import itertools as it
import sys
import math

sys.setrecursionlimit(1000000)

INF = 10 ** 18
MOD = 10 ** 9 + 7

b = raw_input()
b = b.replace('A', '1').replace('T', '2').replace('C', '3').replace('G', '4')
b = b.replace('1', 'T').replace('2', 'A').replace('3', 'G').replace('4', 'C')
print b

Submission status: Accepted

Solution code:
import sys

def main():
  input = sys.stdin.readline
  b = str(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:
dic = {"A":"T", "C":"G", "T":"A", "G":"C"}
print(dic[input()])

Submission status: Accepted

Solution code:
s=str(input())
d=dict()
d['A']='T'
d['T']='A'
d['C']='G'
d['G']='C'
print(d[s])

Submission status: Accepted

Solution code:
b, = map(str, input().split())

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")
else:
    pass

Submission status: Accepted

Solution code:
s=input()
tex =[]
for i in s:
  if i=="A":
    tex.append("T")
  elif i=="T":
    tex.append("A")
  elif i=="G":
    tex.append("C")
  elif i=="C":
    tex.append("G")
    
print("".join(tex))

Submission status: Accepted

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


if __name__ == '__main__':
    main()

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

b = input()

def getAns(b) :
    if 'A' == b :
        return "T"
    elif 'T' == b :
        return "A"
    elif 'C' == b :
        return "G"
    elif 'G' == b :
        return "C"
    else :
        return ""

print(getAns(b))

Submission status: Accepted

Solution code:
#!/usr/bin/env python3
mp = list('ACGT')
print('TGCA'[mp.index(input())])

Submission status: Accepted

Solution code:
b=input()

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

print(e_dict[b])

Submission status: Accepted

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

Submission status: Accepted

Solution code:
enki = input()
if enki == "A":
	print("T")
elif enki == "T":
	print("A")
elif enki == "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:
b=input()
a={"A":"T","T":"A","C":"G","G":"C"}
print(a[b])

Submission status: Accepted

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

print(str(ss))

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
d=input()

srch=['A','C','G','T']
corr=['T','G','C','A']

i=srch.index(d)
print(corr[i])

Submission status: Accepted

Solution code:
A = str(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:
#!/usr/bin/env python
# coding: utf-8

# In[3]:


b = str(input())


# In[4]:


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


# In[ ]:

Submission status: Accepted

Solution code:
base = input()
if base == 'A':
    print('T')
elif base == 'T':
    print('A')
elif base == 'C':
    print('G')
elif base == '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:
chara = input()

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

Submission status: Accepted

Solution code:
acgt = ['A','C','G','T']
tai = ['T','G','C','A']
b = input()
print(tai[acgt.index(b)])

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:
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:
if __name__ == '__main__':
  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:
x=input()
if x=="A" :
    print("T")
elif x=="C" :
    print("G")
elif x=="G" :
    print("C")
else:
    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:
# coding: utf-8
k = input()
jisyo = {"A":"T", "C":"G", "G":"C", "T":"A"}
print(jisyo[k])

Submission status: Accepted

Solution code:
a = input()

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

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

Submission status: Accepted

Solution code:
a=input() 

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

enki(a)

Submission status: Accepted

Solution code:
from sys import exit
# A,B,C = [int(n) for n in input().split()]
# N = int(input())
# a = [int(input()) for _ in range(N)]
S = str(input())
# L = len(S)
# T = 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:
# -*- 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:
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:
s=input()
d={'A':'T','C':'G','G':'C','T':'A'}
print(d[s])

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:
# -*- coding: utf-8 -*-
b = input()

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

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

Submission status: Accepted

Solution code:
def A():
    # 'A' : 'T', 'C':'G'
    b = input()
    helyx = {'A':'T', 'T':'A', 'C':'G', 'G':'C'}

    print(helyx[b])


if __name__ == '__main__':
    A()

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

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

Submission status: Accepted

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


import sys
import math

# 1整数
n = input()

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

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:
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')
else:
    print('C')

Submission status: Accepted

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

Submission status: Accepted

Solution code:
x = input()

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

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

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:
""" AtCoder """

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

def main():
    B = input()

    s1 = {'A', 'T'}
    s2 = {'C', 'G'}
    if B in s1:
        ans = {B} ^ s1
    else:
        ans = {B} ^ s2
    print(*ans)

input = lambda: stdin.readline().rstrip()
main()

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:

b = input()

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

print(b)

Submission status: Accepted

Solution code:
def change(string):
  if string == "A":
    return "T"
  elif string == "T":
    return "A"
  elif string == "G":
    return "C"
  elif string == "C":
    return "G"
  
if __name__ == "__main__":
  string = input()
  print(change(string))

Submission status: Accepted

Solution code:
b = input()

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

print(a)

Submission status: Accepted

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

Submission status: Accepted

Solution code:
dict = {
    "A": "T",
    "C": "G",
    "T": "A",
    "G": "C"
}
s = input()
print(dict.get(s))

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
b = list(input())
res = []
for i in range(len(b)):
    if b[i] == 'A':
        res.append("T")
    elif b[i] == 'T':
        res.append('A')
    elif b[i] == 'C':
        res.append('G')
    elif b[i] == 'G':
        res.append('C')

print(''.join(res))

Submission status: Accepted

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


if __name__ == "__main__":
    main()

Submission status: Accepted

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

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:
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():
    s = input()
    s = s.replace("A", "K").replace("T", "A").replace("K", "T")
    s = s.replace("G", "K").replace("C", "G").replace("K", "C")
    print(s)


if __name__ == '__main__':
    main()

Submission status: Accepted

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

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

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

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

idx = dna.index(b)
print(rna[idx])

Submission status: Accepted

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

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:
# coding: utf-8

str = input()

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

print(str)

Submission status: Accepted

Solution code:
import numpy as np
import sys

A = input()

def f(x):
    if A == "A":
        return "T"
    elif A == "T":
        return "A"
    elif A == "G":
        return "C"
    else:
        return "G"

print(f(A))

Submission status: Accepted

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

if b == 'A':
    print('T')
elif b == 'T':
    print('A')
elif b == 'C':
    print('G')
elif b == 'G':
    print('C')
else:
    print('This is not the base')

Submission status: Accepted

Solution code:
word = input()
if word == "A":
  print("T")
elif word == "T":
  print("A")
elif word == "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:
s = input()
t = []

for i in range(len(s)):
    if s[i] == "A":
        t.append("T")
        continue

    if s[i] == "T":
        t.append("A")
        continue

    if s[i] == "G":
        t.append("C")
        continue

    if s[i] == "C":
        t.append("G")
        continue

ans = "".join(t)
print(str(ans))

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")
print("\n")

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
a = input()

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

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:
# -*- coding:utf-8 -*-

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:
# coding: utf-8

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
at = ['A', 'T']
cg = ['C', 'G']

b = input()

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

Submission status: Accepted

Solution code:
moji = input()
if moji == "A" :
    print("T")
if moji == "C" :
    print("G")
if moji == "G" :
    print("C")
if moji == "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:
d={"A":"T","T":"A","C":"G","G":"C"}

base=input()
print(d[base])

Submission status: Accepted

Solution code:
def main():
    b = input()

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


if __name__ == '__main__':
    main()

Submission status: Accepted

Solution code:
import sys
import io
import math
import re

datalist = input().split()
data_a = str(datalist[0])

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

Submission status: Accepted

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

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

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

Submission status: Accepted

Solution code:
import collections as c
ip = lambda : map(int, input().split())

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

Submission status: Accepted

Solution code:
s='ATACGC'
print(s[s.find(input())+1])

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

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')
else:
  print('error')

Submission status: Accepted

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

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

Submission status: Accepted

Solution code:
#!/usr/bin/env python3
# -*- coding: utf-8 -*-
"""
Created on 2019/3/24
@author: shinjisu
"""


# ABC 122
# import math
def getInt(): return int(input())
def getIntList(): return [int(x) for x in input().split()]
# def getIntList(): return np.array(input().split(), dtype=np.longlong)
def getIntLines(n): return [int(input()) for i in range(n)]
def getIntMat(n, m):  # n行に渡って、1行にm個の整数
    #mat = zeros((n, m))
    mat = zeros2(n, m)
    for i in range(n):
        mat[i] = getIntList()
    return mat

def zeros(n): return [0]*n
# def zeros(n): return np.zeros(n, dtype=np.longlong)
def zeros2(n, m): return [zeros(m) for i in range(n)] # obsoleted zeros((n, m))で代替

ALPHABET = [chr(i+ord('a')) for i in range(26)]
DIGIT = [chr(i+ord('0')) for i in range(10)]
N1097 = 10**9 + 7
INF = 10**18

class Debug():
    def __init__(self):
        self.debug = True
 
    def off(self):
        self.debug = False
 
    def dmp(self, x, cmt=''):
        if self.debug:
            if cmt != '':
                print(cmt, ':  ', end='')
            print(x)
        return x


def prob():
    d = Debug()
    d.off()
    B = input()
    d.dmp((B), 'B')
    dic = {'A':'T', 'C':'G', 'G':'C', 'T':'A', }
    return dic[B]

ans = prob()
if ans is None:
    pass
elif type(ans) == tuple and ans[0] == 1:  # 1,ans
    for elm in ans[1]:
        print(elm)
else:
    print(ans)

Submission status: Accepted

Solution code:
#122-A
def IL(): return list(map(int,input().split()))
def SL(): return input().split()
def I(): return int(input())
def S(): return list(input())
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()

if b == "A":
  b = b.replace("A","T")
  print(b)
  exit()
elif b == "T":
  b = b.replace("T","A")
  print(b)
  exit()
elif b == "G":
  b = b.replace("G","C")
  print(b)
  exit()
elif b == "C":
  b = b.replace("C","G")
  print(b)
  exit()

Submission status: Accepted

Solution code:
b = input()

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

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

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()
be = b.replace('A', '&') #strで拾って(変数名.replace(‘置換前’, ’置換後’))
bea = be.replace('T', 'A')
beam = bea.replace('&', 'T')
beami = beam.replace('C', '$')
beamin = beami.replace('G', 'C')
beaming = beamin.replace('$', 'G')
print(beaming)

Submission status: Accepted

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

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

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

def main(inp):
    dna=list(next(inp))[0]
    
    if(dna=='A'):
        return "T"
    elif(dna=='T'):
        return "A"
    elif(dna=='C'):
        return "G"
    elif(dna=='G'):
        return "C"
      
print(main(sys.stdin))

Submission status: Accepted

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

Submission status: Accepted

Solution code:
b = str(input())

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

print(duble_helix[b])

Submission status: Accepted

Solution code:
S = list(input())

for i,q in enumerate(S):
    if q == 'A':
        S[i] = 'T'
    elif q == 'T':
        S[i] = 'A'
    elif q == 'G':
        S[i] = 'C'
    else:
        S[i] = 'G'
print("".join(S))

Submission status: Accepted

Solution code:
X=["A" if c == "T" else "T" if c == "A" else "G" if c == "C" else "C" for c in input()]

print("".join(X))