View Code of Problem 87

import java.util.Scanner;

public class Main {
    public static void main(String[] args) {
        Scanner scanner = new Scanner(System.in);
        int n = scanner.nextInt();
        if(n%2 != 0){
            System.out.println("0 0");
        }else{
            System.out.println((n%4 == 0 ? n/4 : n/4+1) +" "+n/2);
        }
    }
}

Double click to view unformatted code.


Back to problem 87