#include <stdio.h>

int main() {
	int x;
	scanf("%d",&x);
	x = (x)^3;
	printf("3乗は%dです\n", x);
	return 0;
}
