#include <stdio.h>

int main(void) {
	// your code goes here
	int num=1531,og_num,remainder,result,n=3;
	og_num=num;
	
	// while(og_num!=0){
	// 	num/=10;
	// 	n++;
	// }
	while(num!=0){
		remainder%10;
		result+=pow(remainder,n);
		num/=10;
	}
	if(result==num){
	printf("Armstrong");
	}
	else{
		printf("not an armstrong");
	}
	return 0;
}
