#!/usr/bin/env python

import fasta
import rna_transcription
import protein_translation

def rna_splicing(dnas):
    s = dnas.popitem(False)[1]
    for sub in dnas.itervalues():
        s = s.replace(sub, '')
    return protein_translation.encode_strand(rna_transcription.transcribe_rna(s))


if __name__ == '__main__':
    import sys

    f = sys.stdin if len(sys.argv) == 1 else open(sys.argv[1])

    print rna_splicing(fasta.read_fasta(f))

f011608374a6c6fd1771005bd3e6fc27c73a497c
#!/usr/bin/env python

import fasta
import rna_transcription
import protein_translation

def rna_splicing(dnas):
    s = dnas.popitem(False)[1]
    for sub in dnas.itervalues():
        s = s.replace(sub, '')
    return protein_translation.encode_strand(rna_transcription.transcribe_rna(s))


if __name__ == '__main__':
    import sys

    f = sys.stdin if len(sys.argv) == 1 else open(sys.argv[1])

    print rna_splicing(fasta.read_fasta(f))
