import java.io.*;
public class capslock
{
public static void main(String[]args) throws IOException
{
System.out.print("Enter a word: ");
System.out.println(setWord());
}
public static String setWord() throws IOException
{
BufferedReader userInput = new BufferedReader (new InputStreamReader (System.in));
String word = userInput.readLine();
word = word.toLowerCase();
word = word.substring(0,1).toUpperCase()+word.substring(1);
return word;
}
}
public class capslock
{
public static void main(String[]args) throws IOException
{
System.out.print("Enter a word: ");
System.out.println(setWord());
}
public static String setWord() throws IOException
{
BufferedReader userInput = new BufferedReader (new InputStreamReader (System.in));
String word = userInput.readLine();
word = word.toLowerCase();
word = word.substring(0,1).toUpperCase()+word.substring(1);
return word;
}
}








