import java.io.*;

class CountBytes {
	 public static void main(String[] args)
	 throws IOException
	 {
		  InputStream in;
		  if(args.length==0)
				in = System.in;
		  else
				in = new FileInputStream(args[0]);

		  int total=0;
		  while(in.read() != -1)
				total++;

		  FileOutputStream(args[1]) = total;
	 }
}
