public class NumberCollector {
public static void main(String[] args) {
Scanner in = new Scanner(System.in);
String charList = in.nextLine();
ArrayList<Integer> numList = new ArrayList<>();
//遍历字符串中每个字符,将数字字符转化为整型数字
for (int i = 0; i < charList.length(); i++) {
if (Character.isDigit(charList.charAt(i))) {
//通过将目标数字字符与'0'字符ASCII码相减,结果即为该数字本身的整型数字
numList.add(charList.charAt(i) - '0');
}
}
for (int each : numList) {
System.out.println(each);
}
}
}