Ala: Asp: Asn: Cys: Gly: H H O H H O H H O H H O H H O | | || | | || | | || | | || | | || H-N-C-C-O-H H-N-C-C-O-H H-N-C-C-O-H H-N-C-C-O-H H-N-C-C-O-H | | | | | H-C-H H-C-H H-C-H H-C-S-H H | | | | H O=C-O-H O=C-N-H H | H Ser: Met: Thr: Gln: Glu: Peptide bond: H H O H H O H H O H H O H H O O H | | || | | || | | || | | || | | || || | H-N-C-C-O-H H-N-C-C-O-H H-N-C-C-O-H H-N-C-C-O-H H-N-C-C-O-H -C---N- | | | | | H-C-O-H H-C-H H-C-O-H H-C-H H-C-H | | | | | H H-C-H H-C-H H-C-H H-C-H | | | | S H O=C-N-H O=C-O-H | | H-C-H H | H
See below for molecular mass of amino acids.
Amino acid | 3-letter symbol | Molecular mass |
Alanine | Ala | 89 |
Asparagine | Asn | 132 |
Aspartate | Asp | 133 |
Cysteine | Cys | 121 |
Glutamine | Gln | 146 |
Glutamate | Glu | 147 |
Glycine | Gly | 75 |
Methionine | Met | 149 |
Serine | Ser | 105 |
Threonine | Thr | 119 |
The first line contains two integers
and
(
,
), denoting the number of amino acids and the molecular mass upper bound.
The second line containsstrings, each consisting of 3 letters denoting a kind of amino acid.
In the first line, print a single integer denoting the number of possible peptide chains.
Then print the structural formula of every possible peptide chain by the lexicographical order of their 3-letter sequences, separated by a blank line in between.