#define _CRT_SECURE_NO_WARNINGS // for VC++
#include <stdio.h>
int powint(int n, int i)
{
int r = 1;
int j;
for (j = 0; j < i; j++) {
r *= n;
}
return r;
}
int main()
{
int n, i;
if (scanf("%d", &n
) != 1) { return 1;
}
for (i = 0; i <= 4; i++) {
printf("%dの%d乗は%dです。\n", n
, i
, powint
(n
, i
)); }
return 0;
}
I2RlZmluZSBfQ1JUX1NFQ1VSRV9OT19XQVJOSU5HUwkvLyBmb3IgVkMrKwoKI2luY2x1ZGUgPHN0ZGlvLmg+CgppbnQgcG93aW50KGludCBuLCBpbnQgaSkKewoJaW50IHIgPSAxOwoJaW50IGo7CgoJZm9yIChqID0gMDsgaiA8IGk7IGorKykgewoJCXIgKj0gbjsKCX0KCXJldHVybiByOwp9CgppbnQgbWFpbigpCnsKCWludCBuLCBpOwoKCXByaW50Zigi5pW05pWw44KS5YWl5YqbIDogIik7CglpZiAoc2NhbmYoIiVkIiwgJm4pICE9IDEpIHsKCQlwcmludGYoIuWFpeWKm+OCqOODqeODvOOBp+OBmeOAglxuIik7CgkJcmV0dXJuIDE7Cgl9CgoJZm9yIChpID0gMDsgaSA8PSA0OyBpKyspIHsKCQlwcmludGYoIiVk44GuJWTkuZfjga8lZOOBp+OBmeOAglxuIiwgbiwgaSwgcG93aW50KG4sIGkpKTsKCX0KCglyZXR1cm4gMDsKfQo=