A characterization of normed spaces