Problem:
X Cubic

Write a program which calculates the cube of a given integer x.

Input

An integer x is given in a line.

Output

Print the cube of x in a line.

Constraints

1 ≤ x ≤ 100

Sample Input 1

2

Sample Output 1

8

Sample Input 2

3

Sample Output 2

27

Solution in JAVA (judge verdict: Accepted)

import java.util.Scanner;

class AskCubeOfX {
    
    public int Input() {
        
        int x = 0;
        Scanner in = new Scanner(System.in);
        
        x = in.nextInt();
        
        return x;
    }
    
    public int askCube(int x) {
        return  x * x * x;
    }
    
    public void Print(int cube) {
        System.out.println(cube);
    }
}

public class Main {

    /**
     * @param args the command line arguments
     */
    public static void main(String[] args) {
        
        int x = 0, cube = 0;
        
        AskCubeOfX test = new AskCubeOfX();
        
        x = test.Input();
        
        cube = test.askCube(x);
        
        test.Print(cube);
    }
}