#include main(){ long nc; nc = 0; while (getchar() != '.') ++nc; printf("%ld\n", nc); }