s = input() các_từ = s.split() xâu_chuẩn_hóa = " ".join(các_từ) kết_quả = xâu_chuẩn_hóa.capitalize() print(kết_quả