import java.io.*; /* * * @author David Alvarez Lopez * @email sly.dekar@gmail.com * @date 18-Oct-05 * */ public class SkewBinary { private static PrintWriter stdOut = new PrintWriter(System.out,true); private static PrintWriter stdErr = new PrintWriter(System.out,true); //private static BufferedReader stdIn = new BufferedReader(new InputStreamReader(System.in)); public static void main(String[] args) throws IOException { BufferedReader fileIn = new BufferedReader(new FileReader("C:/input.txt")); while (fileIn.ready()) { String s = fileIn.readLine(); if (!s.equals("0")) { int arr[] = new int[s.length()]; double num = 0; for (int i = 0; i