import java.util.Scanner; public class Main { public static void main(String[] args) { try (Scanner scan = new Scanner(System.in)) { char tmp[] = scan.nextLine().toCharArray(); int ans = Integer.parseInt(String.valueOf(tmp)); for(int i=0; i