Java版
import java.util.Scanner;
public class Main {
public static void main(String[] args) {
Scanner in = new Scanner(System.in);
String s1 = in.next();
for(int i = 0; i < s1.length(); i++){
if(s1.charAt(i)>='0' && s1.charAt(i)<='9'){
System.out.print("*");
}else System.out.print(s1.charAt(i));
}
}
}