The price of printing

There is an old gossip (although most probably not true) that the French language has many silent letters that are not pronounced in the spoken language, but are written down because the first printers were paid per letter. So, the first printers added redundant letters to words to make them longer and get paid better.
Printing a single letter was equivalent to 5 French Francs (it was pretty expensive to write long texts). You are asked to write a program that would calculate the price of writing the given text.
The input contains a single line of text.
The program should print a single number - the amount the printer would charge for writing that text.
J'adore ma grand-mère, elle est très gentille. Elle fait des bons gâteaux.
Note that you should only consider alphabetical letters.
To check your solution you need to sign in
Sign in to continue