def cal(a_sting):
	word = a_string.split(' ')[-1]
	return len(word)

in_ = input()
out_ = cal(in_)
print(out_)