import java.util.Scanner;
public class TernaryOperatorExample {
 
    public static void main(String[] args) {
        Scanner myScanner = new Scanner(System.in);
        
        System.out.println("How many persons should share the $20?");
        int count = myScanner.nextInt();
        System.out.println(count > 0 ? "You get $" + (20 / count) + " for yourself" : "Invalid amount");
    }
    
}