Count the number of vowels in each word and compare the total text volume across two strings.
You are given two text strings. For each string, define its volume as the total number of vowels it contains, where vowels are a, e, i, o, u in either lowercase or uppercase.
Your task is to determine which string has the larger volume.
If the first string has a larger volume, print 1. If the second string has a larger volume, print 2. If both volumes are equal, print 0.
Print a single integer:
1 if has more vowels,2 if has more vowels,0 if they are equal.Example 1
Input
Hello Codeforces
Output
2
Explanation
Hello has 2 vowels (e, o), while Codeforces has 4 vowels (o, e, o, e).
Example 2
Input
AE ui
Output
0
Explanation
Each string contains 2 vowels, so the result is a tie.
Premium problem context
Premium adds guided hints, editorial links, similar variants, discussion resources, and concept maps so you can understand why a problem matters, not just solve it once.