#include <stdlib.h> #include <stdio.h> int main(){ int entry, kaprekar, i; scanf("%d",&entry); for(i=10;i<=entry;i = i*10){ kaprekar = entry/i + entry%i; if (kaprekar*kaprekar == entry){ printf("1") return 1; } } printf("0"); return 0; }