The central dogma of molecular biology is that DNA is transcribed into RNA, which is then tranlsated into protein. RNA, like DNA, is a long strand of nucleic acids held together by a sugar backbone (ribose in this case). Each segment of three bases is called a codon. Molecular machines called ribosomes translate the RNA codons into amino acid chains, called polypeptides which are then folded into a protein. 

Protein sequences are easily visualized in much the same way that DNA and RNA are, as large strings of letters. An important thing to note is that the 'Stop' codons do not encode for a specific amino acid. Their only function is to stop translation of the protein, as such they are not incorporated into the polypeptide chain. 'Stop' codons should not be in the final protein sequence. To save a you a lot of unnecessary (and boring) typing the keys and values for your amino acid dictionary are provided.
                         
Given a string of RNA, create a funciton which translates the RNA into its protein sequence. Note: the test cases will always produce a valid string.

```python
protein('UGCGAUGAAUGGGCUCGCUCC') returns 'CDEWARS'
```

Included as test cases is a real world example! The last example test case encodes for a protein called green fluorescent protein; once spliced into the genome of another organism, proteins like GFP allow biologists to visualize cellular processes!

Amino Acid Dictionary
----------------------

```python
    # Phenylalanine
    'UUC':'F', 'UUU':'F',
    # Leucine
    'UUA':'L', 'UUG':'L', 'CUU':'L', 'CUC':'L','CUA':'L','CUG':'L', 
    # Isoleucine
    'AUU':'I', 'AUC':'I', 'AUA':'I', 
    # Methionine
    'AUG':'M', 
    # Valine
    'GUU':'V', 'GUC':'V', 'GUA':'V', 'GUG':'V', 
    # Serine
    'UCU':'S', 'UCC':'S', 'UCA':'S', 'UCG':'S', 'AGU':'S', 'AGC':'S', 
    # Proline
    'CCU':'P', 'CCC':'P', 'CCA':'P', 'CCG':'P', 
    # Threonine
    'ACU':'T', 'ACC':'T', 'ACA':'T', 'ACG':'T',
    # Alanine
    'GCU':'A', 'GCC':'A', 'GCA':'A', 'GCG':'A', 
    # Tyrosine
    'UAU':'Y', 'UAC':'Y', 
    # Histidine
    'CAU':'H', 'CAC':'H',
    # Glutamine
    'CAA':'Q', 'CAG':'Q', 
    # Asparagine
    'AAU':'N', 'AAC':'N', 
    # Lysine
    'AAA':'K', 'AAG':'K',
    # Aspartic Acid
    'GAU':'D', 'GAC':'D', 
    # Glutamic Acid
    'GAA':'E', 'GAG':'E',
    # Cystine
    'UGU':'C', 'UGC':'C',
    # Tryptophan
    'UGG':'W', 
    # Arginine
    'CGU':'R', 'CGC':'R', 'CGA':'R', 'CGG':'R', 'AGA':'R', 'AGG':'R', 
    # Glycine
    'GGU':'G',  'GGC':'G', 'GGA':'G', 'GGG':'G', 
    # Stop codon
    'UAA':'Stop', 'UGA':'Stop', 'UAG':'Stop'
```

```python

USER_FILENAME = "<user_code>"
import sys, json, builtins
import math, heapq, bisect, itertools, functools, collections, statistics, fractions, decimal, operator, array, random, re, string, os, pathlib
try:
    import resource as _res
except Exception:
    _res = None
from collections import Counter, defaultdict, deque, OrderedDict
from functools import lru_cache, reduce
from itertools import accumulate, permutations, combinations, product
from math import gcd, ceil, floor, sqrt
from decimal import Decimal
try:
    from typing import *
except Exception:
    pass
try:
    sys.setrecursionlimit(1_000_000)
except Exception:
    pass
try:
    import site as _site
    try:
        _sys_sites = _site.getsitepackages() if hasattr(_site, "getsitepackages") else []
        for _p in _sys_sites:
            if _p and _p not in sys.path:
                sys.path.append(_p)
    except Exception:
        pass
    try:
        _usp = _site.getusersitepackages()
        if isinstance(_usp, str):
            _usp = [_usp]
        for _p in _usp:
            if _p and _p not in sys.path:
                sys.path.append(_p)
    except Exception:
        pass
except Exception:
    pass

def _disabled_input(*args, **kwargs):
    raise RuntimeError("input() is disabled in callable mode")
builtins.input = _disabled_input

ns = {"__name__": "__judge__"}  # prevent if __name__ == "__main__" blocks
for _k, _v in list(globals().items()):
    if not _k.startswith("_"):
        ns[_k] = _v
_CODE = 'def protein(rna):\n    dict = { \n        # Phenylalanine\n        \'UUC\':\'F\', \'UUU\':\'F\',\n        # Leucine\n        \'UUA\':\'L\', \'UUG\':\'L\', \'CUU\':\'L\', \'CUC\':\'L\',\'CUA\':\'L\',\'CUG\':\'L\', \n        # Isoleucine\n        \'AUU\':\'I\', \'AUC\':\'I\', \'AUA\':\'I\', \n        # Methionine\n        \'AUG\':\'M\', \n        # Valine\n        \'GUU\':\'V\', \'GUC\':\'V\', \'GUA\':\'V\', \'GUG\':\'V\', \n        # Serine\n        \'UCU\':\'S\', \'UCC\':\'S\', \'UCA\':\'S\', \'UCG\':\'S\', \'AGU\':\'S\', \'AGC\':\'S\', \n        # Proline\n        \'CCU\':\'P\', \'CCC\':\'P\', \'CCA\':\'P\', \'CCG\':\'P\', \n        # Threonine\n        \'ACU\':\'T\', \'ACC\':\'T\', \'ACA\':\'T\', \'ACG\':\'T\',\n        # Alanine\n        \'GCU\':\'A\', \'GCC\':\'A\', \'GCA\':\'A\', \'GCG\':\'A\', \n        # Tyrosine\n        \'UAU\':\'Y\', \'UAC\':\'Y\', \n        # Histidine\n        \'CAU\':\'H\', \'CAC\':\'H\',\n        # Glutamine\n        \'CAA\':\'Q\', \'CAG\':\'Q\', \n        # Asparagine\n        \'AAU\':\'N\', \'AAC\':\'N\', \n        # Lysine\n        \'AAA\':\'K\', \'AAG\':\'K\',\n        # Aspartic Acid\n        \'GAU\':\'D\', \'GAC\':\'D\', \n        # Glutamic Acid\n        \'GAA\':\'E\', \'GAG\':\'E\',\n        # Cystine\n        \'UGU\':\'C\', \'UGC\':\'C\',\n        # Tryptophan\n        \'UGG\':\'W\', \n        # Arginine\n        \'CGU\':\'R\', \'CGC\':\'R\', \'CGA\':\'R\', \'CGG\':\'R\', \'AGA\':\'R\', \'AGG\':\'R\', \n        # Glycine\n        \'GGU\':\'G\',  \'GGC\':\'G\', \'GGA\':\'G\', \'GGG\':\'G\', \n        # Stop codon\n        \'UAA\':\'Stop\', \'UGA\':\'Stop\', \'UAG\':\'Stop\'\n    }\n    arr = [rna[i:i+3] for i in range(0, len(rna), 3)]\n    p = []\n    for a in arr:\n        if dict[a] != "Stop":\n            p.append(dict[a])\n        else:\n            break\n    return "".join(p)'
_co = compile(_CODE, USER_FILENAME, "exec")
exec(_co, ns, ns)

_target = None
_fn_name = 'protein'
if _fn_name:
    if "Solution" in ns:
        try:
            _obj = ns["Solution"]()
            if hasattr(_obj, _fn_name):
                _target = getattr(_obj, _fn_name)
        except Exception:
            _target = None
    if _target is None and _fn_name in ns and callable(ns[_fn_name]):
        _target = ns[_fn_name]
# Fallback: if there's exactly one user-defined function, use it
if _target is None:
    _cands = [v for k, v in ns.items() if callable(v) and getattr(v, "__module__", "") in ("__judge__", "__main__")]
    _user_funcs = [c for c in _cands if getattr(c, "__name__", "").startswith("_") is False]
    if len(_user_funcs) == 1:
        _target = _user_funcs[0]
if _target is None:
    raise RuntimeError(f"Could not resolve callable '{_fn_name}'")

_raw = sys.stdin.read().strip()
if _raw:
    _parsed = json.loads(_raw)
    if isinstance(_parsed, dict):
        _kwargs = _parsed.get("kwargs", {})
        _args = _parsed.get("args", [])
    else:
        _args, _kwargs = _parsed, {}
else:
    _args, _kwargs = [], {}
if not isinstance(_args, (list, tuple)):
    _args = [_args]
_res = _target(*_args, **_kwargs)
try:
    sys.stdout.write(repr(_res) + "\n")
except Exception:
    pass

```

Measured memory_bytes: 8274