"""def absolute_value(x):
    if x< 0:
        return -x
    else:
        return x

raw_input=(">")
print absolute_value(-3)"""
    
    
"""def fact(n):
    if n == 0:
        return 1
    else:
        helo= fact(n-1)
        result=n*helo
        return result
print fact(5)"""

"""def countdown(n):
    while n > 0:
        print n
        n = n-1
    print" blast """
    
"""def find(word , list):
    index=0
    while index < len(word):
        if word[index] == letter:
        """
 
word = "banana"
count=0
for letter in word:
    if letter == 'a':
        count= count+1
        
    print count