Calculating Protein Mass

http://rosalind.info/problems/prtm/

Given: A protein string P of length at most 1000 aa.

Return: The total weight of P. Consult the monoisotopic mass table.