#include int log10(long n){ int result; for(result=0;n>=10;result++)n/=10; return result; } double pow10(int n){ double result = 1.0; for(;n--;)result *= 10; return result; } int main(void){ int I, N, X, Y, Z; double S; long A; scanf("%i", &N); for(I=0;I