import java.util.*; public class Main { public static void main(String[] args) { Scanner sc = new Scanner(System.in); int num=0; int L = sc.nextInt(); L/=4; int rt = (int)Math.sqrt(L/2); for(int m=2; m<=rt; m++){ for(int n=1; n