😖
package com.javarush.task.task08.task0823;
import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;
/*
Омовение Рамы
*/
public class Solution {
public static void main(String[] args) throws IOException {
BufferedReader reader = new BufferedReader(new InputStreamReader(System.in));
String string = reader.readLine();
String[] words = string.split(" ");
String result = "";
for (String x : words) {
x = x.trim();
x = x.substring(0, 1).toUpperCase() + x.substring(1);
result += (x + " ");
}
System.out.println(result);
}
}