The Polite Waiter
Rohan is a waiter at a popular cafe. He's always polite, and believes in offering a "Namaste" to every customer who walks in. Rohan has a special way of greeting customers. For every customer who enters, he checks their name. If their name contains the letter 'a' (lowercase), he says "Namaste!" twice. Otherwise, he says it only once.
Given a customer's name, help Rohan determine how many times he will say "Namaste!".
Input
A single line containing the customer's name, consisting of lowercase English letters.
Output
A single integer representing the total number of times Rohan says "Namaste!".
Constraints
The customer's name will have length between 1 and 1000, inclusive.
Example 1
rahul
6
The name 'rahul' contains two 'a's. For each 'a', Rohan says 'Namaste!' twice (2*2=4). For 'r', 'h', 'u', 'l', he says 'Namaste!' once each (4*1=4). Total is 4+4=8.
Example 2
hello
5
The name 'hello' does not contain 'a'. Rohan says 'Namaste!' once for each character. There are 5 characters, so he says it 5 times.
Hints
# Read the input from stdin and print the answer.
import sys
def main():
data = sys.stdin.read().split()
# your code here
main()
rahul
hello