#include <stdio.h> int main(void) { char a; int b; while('a' == getchar() && a != '\n') { b++; } printf("%d", b); return 0; }