Counting vowels in strings with palindrome check
Rust
Medium
strings
Task «Counting vowels in strings with palindrome check»
Write a program that takes a string and counts the number of vowel letters (a, e, i, o, u, y) in it, ignoring case. Then check whether the original string is a palindrome (ignoring spaces and case). Output the number of vowels and the result of the palindrome check. The string contains only letters of the Latin alphabet and spaces.
Input Format
One line containing letters of the Latin alphabet and spaces.
Output Format
Two strings: the first is an integer (number of vowels), the second is 'yes' if the string is a palindrome, otherwise 'no'.
Examples
Example 1
INPUT
Rust
OUTPUT
1
no
Example 2
INPUT
level
OUTPUT
2
yes
main.rs