import java.io.*;

public class SmartCard {
    public static void main(String[] args) throws Exception {
        BufferedReader r = new BufferedReader(new InputStreamReader(System.in));
        String candidate = null;
        do {
            System.out.print("Enter your preferred candidate: ");
            candidate = r.readLine();
        } while(candidate == null);

        System.out.format("Your vote for '%s' has been recorded.\nRemember that your vote matters!\n", candidate);
    }
}
