f:!0;stdin.get_s(1K).split(" "){k:math::sqrt(it.to_i)+0.5 .to_i;f&&(11*k+k%10).p;f=0;}