#include <iostream>
using namespace std;

int main() {
	double x, S=0;
	while (cin >> x) 
	{
	   S++;
	}
	cout << S;
	return 0;
}