Diamond
You are a big fancier of jewelry and gemstones. Recently, a remarkable diamond was put for sale in the jewelry store next to your house. Unfortunately, its price was also remarkable - X dollars. Regretful, you had to state that this is way too much.
Apparently, other potential buyers also came to the same conclusion, because soon the store started an advertising campaign. "Get a 5% discount on the diamond for each letter of your name!," read the streamer by the frontdoor. The formulation left some ambiguities, so you decided to question the sellers. As it turned out:
If a letter occurs in the name several times, it's only counted once. For example, "alexandra" contains only 7 letters in terms of the campaign.
5% discount is multiplied by the number of distinct letters in the name. I.e., "alexandra" would get a 35% discount.
The discounts exceeding 100% are not provided, but a 100% discount is okay (yep, the sellers questioned your sanity when they heard this inquiry).
Of course, not making use of such a generous oer would be a crime, but maybe you can save more? By chance, you know a person who makes fake passports. His service is paid as follows: A fake passport costs A dollars. It may contain your real name without changes, or the name may be altered using any number of operations of the following three kinds.
Inserting a letter at any position in the name costs B dollars.
Erasing a letter at any position in the name costs C dollars. If a name contains a single letter, erasing it is not allowed.
Replacing a letter at some position with any other letter of the English alphabet costs D dollars.
Given X, A, B, C, D and your real name, determine the least amount of money which you need to obtain the diamond (count both the money spent on buying the diamond and the money spent on the fake passport, if any). Taking a fake passport is not neccessary you may just provide your real passport at the store.
Input
The first line of input contains integer X. The second line contains integers A, B, C and D (1 ≤ X, A, B, C, D ≤ 1000000), separated by single spaces. The third line contains Name. It contains from 1 to 15 characters and consists of lowercase English letters only.
Output
Print the least amount of money you need to get the diamond, measured in cents (a dollar is 100 cents).