Untitled

mail@pastecode.io avatar
unknown
plain_text
2 years ago
750 B
2
Indexable
Never
def main():
    n = int(input())
    for i in range(n):
        DNA_line = input()
        ret = "mutation"
        if len(DNA_line) % 2 == 0:
            print(ret)
            break
        if DNA_line == 'A':
            print("interphase")
            break
        l = 0
        r = len(DNA_line) - 1
        while r - l > 0:
            if DNA_line[r] == 'A' and DNA_line[l] == 'G':
                l += 1
                r -= 1
                continue
            if DNA_line[r] == 'G' and DNA_line[r - 1] == 'A':
                r -= 2
                continue
            break
        else:
            if DNA_line[-1] != 'A':
                ret = "mitosis"
            else:
                ret = "cytokinesis"
        print(ret)
main()