import java.io.*;

public class InputLoops2 {
  
  public static void main(String[] args) throws IOException {
    BufferedReader br=
      new BufferedReader(new FileReader("file.txt"));
    String input= br.readLine();
    
    // while input is not the stopping input
    while (input != null) {
      System.out.println(input.length());
     input= br.readLine(); 
    }
    
  }
}
                                          