a[];main(x){for(;x=~getchar(a[x&8]+=x/11*2+1)%69;);*a=!printf("%f",hypot(*a,a[8]));}