void main() {
    int age = Integer.parseInt(IO.readln("Your age: ").strip());

    if (age >= 18) {
        IO.println("You are eligible to vote.");
    } else {
        IO.println("You can vote in " + (18 - age) + " years.");
    }
}

// From Groundwork, chapter 4 (ch04-making-decisions), box 4.
// This example is from Groundwork, licensed CC BY-NC-SA 4.0.
// Run with: java ch04_04.java
