n = gets.to_s.to_i ans = Math.sqrt(n).to_i.to_s.size puts ans