package edu.caltech.cs2.project01;

import java.io.FileNotFoundException;
import java.util.Scanner;

public class characterfilter {
    public static void main(String[] args) throws FileNotFoundException {
        Scanner scan = new Scanner(System.in);
        System.out.print("Type a sentence to filter: ");
        System.out.print("");
        String text = scan.nextLine();
        String plain = "";
        for (int i = 0; i < text.length(); i++) {
            char letter = text.charAt(i);
            if (letter >= 'A' && letter <= 'Z') {
                plain += letter;
            }
        }
        System.out.println(plain);
    }
}
