package com.codegym.task.task08.task0823;
import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;
import java.util.*;
/*
Going national
*/
public class Solution {
public static void main(String[] args) throws IOException {
Scanner in = new Scanner(System.in);
String str =in.nextLine();
StringBuilder result = new StringBuilder(str.length());
String words[] = str.split("\\ ");
for (int i = 0; i < words.length; i++)
{
result.append(Character.toUpperCase(words[i].charAt(0))).append(words[i].substring(1)).append(" ");
}
System.out.print(result);
//write your code here
}
}
package com.codegym.task.task08.task0823;
import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;
import java.util.*;
/*
Going national
*/
public class Solution {
public static void main(String[] args) throws IOException {
Scanner in = new Scanner(System.in);
String str =in.nextLine();
StringBuilder result = new StringBuilder(str.length());
String words[] = str.split("\\ ");
for (int i = 0; i < words.length; i++)
{
result.append(Character.toUpperCase(words[i].charAt(0))).append(words[i].substring(1)).append(" ");
}
System.out.print(result);
//write your code here
}
}