На вход программе подается строка, содержащая английский текст. Напишите программу, которая подсчитывает общее количество артиклей: 'a', 'an', 'the'.
На вход программе подается строка, содержащая английский текст. Слова текста разделены символом пробела.
Программа должна вывести общее количество артиклей 'a', 'an', 'the' вместе с поясняющим текстом.
William Shakespeare was born in the town of Stratford, England, in the year 1564. When he was a young man, Shakespeare moved to the city of London, where he began writing plays. His plays were soon very successful, and were enjoyed both by the common people of London and also by the rich and famous. In addition to his plays, Shakespeare wrote many short poems and a few longer poems. Like his plays, these poems are still famous today.
Общее количество артиклей: 7
# | Входные данные | Выходные данные |
---|---|---|
1 | William Shakespeare was born in the town of Stratford, England, in the year 1564. When he was a young man, Shakespeare moved to the city of London, where he began writing plays. His plays were soon very successful, and were enjoyed both by the common people of London and also by the rich and famous. In addition to his plays, Shakespeare wrote many short poems and a few longer poems. Like his plays, these poems are still famous today. | Общее количество артиклей: 7 |
2 | There have been many great writers in the history of English literature, but there is no doubt about which writer was the greatest. Many people consider William Shakespeare to have been the best writer who ever lived. | Общее количество артиклей: 3 |
3 | A An The | Общее количество артиклей: 0 |