#include <iostream> using namespace std; int convert(int number,int radix) { int sum=0; sum += number%radix; number = number/radix; while(number!=0) { sum += number%radix; number/=radix; } return sum; } int main() { int n; while((scanf("%d",&n))!=EOF && n) { if((convert(n,10)==convert(n,16))&&(convert(n,16)==convert(n,12))) printf("%d is a Sky Number.\n",n); else printf("%d is not a Sky Number.\n",n); } return 0; }