import java.util.Scanner; public class HelloWorld { public static void main(String[] args) throws Exception { Scanner sc = new Scanner(System.in); String n = sc.nextLine(); sc.close(); System.out.println(n.length()); System.out.println((int)Math.ceil(n.length() / 2.0)); } }