package ogorod; import java.util.Scanner; public class Ogorod { public static void main(String[] args) { Scanner in = new Scanner(System.in); System.out.println("Введите a"); int a = in.nextInt(); System.out.println("Введите m"); int m = in.nextInt(); System.out.println("Введите n"); int n = in.nextInt(); int kol; int x, y; x=m/a; y=n/a; if (m%a!=0) x=x+1; if (n%a!=0) y=y+1; kol = x*y; System.out.println(kol); }}