import java.nio.charset.StandardCharsets;

public class JI9035114 {

	public static void main(String[] args) {
		char[] c = new char[Integer.MAX_VALUE / 2]; 
		for (int i = 0; i < c.length; i++) { 
			c[i] = 'A'; 
		} 
		String s = new String(c); 
		c = null; 
		byte[] bytes = s.getBytes(StandardCharsets.UTF_8); 
		System.out.println(bytes.length); 

	}

}
