#include <cstdio>

int main()
{
	char a='0', b='0', c='0';
	
	scanf("%*d.%c%c%c", &a, &b, &c);
	printf("%d\n", a+b+c-'0'*3);
	
	return 0;
}