import java.util.Scanner;
public class Exc1Test {
// 请在Begin-End间编写代码
/********** Begin **********/
// 第一步:创建任意方法并抛出异常
public static void Exc() throws ArithmeticException{
// 第二步:接收给定的两个字符串
Scanner scanner = new Scanner(System.in);
String next = scanner.next();
String next1 = scanner.next();
// 第三步:把第二个字符串的长度减1,得到一个整数值
int i = next1.length() - 1;
// 第四步:输出第一个字符串长度是整数值的多少倍
System.out.print( next.length() / i);
}
public static void main(String[] args) {
// 第五步:调用创建的方法,并捕获异常,输出"除数不能为0"
try{
Exc();
}
catch (ArithmeticException e){
System.out.print("除数不能为0");
}
}
/********** End **********/
}