int main()
{
	int a = 0;
	int d = 0;
	int e = 0;

	for (int b =100 ; b < 1000; b++)
	{
		for (int c = 1; c <= b; c++)
		{
			if (b % c == 0)
			{
				d++;
				if (d > 2)
				{
					e++;
					d = 0;
					break;
				}
			}
		}
	}
	e = 900 - e;
	printf("%d\n", e);
	return 0;
}