import java.util.*;
public class Main {
public static void main(String[] args) {
Scanner input=new Scanner(System.in);
int a=input.nextInt();
int b=input.nextInt();
int c=input.nextInt();
System.out.println(String.format("%-9d%-9d%-9d",a,a*a,a*a*a));
System.out.println(String.format("%-9d%-9d%-9d",b,b*b,b*b*b));
System.out.println(String.format("%-9d%-9d%-9d",c,c*c,c*c*c));
}
}
java的左右对齐,所占列数与C语言想同