#include <stdio.h>
int main() {
char txt[100] = "";
int dim = 0;
//Citesc sir caractere
do {
scanf(" %c", txt + dim++);
} while (txt[dim - 1] != '*');
//Determina numarul de 'a'
int a = 0;
int index = 0;
do {
if (txt[index++] == 'a')
a++;
} while (index < dim);
//Afiseaza numarul de 'a'
printf("\nCaracterul \'a\' a aparut de %d ori in sirul de caractere.", a);
}