#include <stdio.h>
#include <stdlib.h>
int
main()
{
int
a,b,c;
scanf
(
"%d%d%d"
,&a,&b,&c);
printf
(
"%-9d%-9d%-9d\n"
,a,a*a,a*a*a);
printf
(
"%-9d%-9d%-9d\n"
,b,b*b,b*b*b);
printf
(
"%-9d%-9d%-9d\n"
,c,c*c,c*c*c);
return
0;
}