you & mdash; The younger assistant in the cryptography department. Your senior colleague is engaged in the decoding of an important message written in English using frequency analysis. He has already determined what symbol in the cipher jack is most often found. Now he needs to check a few hypotheses about what letter of the English alphabet this symbol corresponds to.
rn
your task & mdash; Write a program that will help to quickly assess the plausibility of the hypothesis. The program should request an encrypted message (it is necessary for context, but it is not required to analyze it) and the alleged letter-key (the one, into which, according to the hypothesis, the most frequent symbol is expanded).
rn
Based on the common ones; Knowledge about the frequency of letters in English, the program should make a verdict about the probability of the key according to the following rules:
rn
rn 'E' , this is the most likely option, since 'E' & Mdash; The most common letter in English. rn if the key & mdash; One of the other frequent vowels ( 'a' a ', & nbsp; ' o ', & nbsp; ' i '), then this is a probable option. rn if the key & mdash; One of the rarest letters ( 'z' , & nbsp; 'q' , & nbsp; 'j' , & nbsp; '' x '), then this is unlikely Option. rn in all other cases (other consonants and vowels) is considered dubious. rn the program should display one of four assessments: & laquo; the most likely key. & raquo; & laquo; probable key. & raquo;, & laquo; unlikely key. & raquo; or & laquo; dubious key. & raquo;.
Hint
There will be no clue here, decide for yourself!