https://www.acmicpc.net/problem/1475import java.util.*;public class Main { public static void main(String[] args) { Scanner scanner = new Scanner(System.in); int num = scanner.nextInt(); scanner.close(); List digits = new ArrayList(); String numberStr = String.valueOf(num); for (char c : numberStr.toCharArray()) { digits.add(Character.getNu..