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