import java.util.*;
import java.lang.*;
import java.io.*;

// The main method must be in a class named "Main".
class Main {
    public static void main(String[] args) {
        Scanner sc=new Scanner(System.in);
        int n=sc.nextInt();
        int ans=1;
        int pow_digit=0;
        while(n!=0){
            int digit=n%10;
            int power_val=(int) Math.pow(10,pow_digit);
            ans=ans*digit*power_val;
            pow_digit++;
            n=n/10;
        }
        System.out.println(ans);
    }
}

Embed on website

To embed this project on your website, copy the following code and paste it into your website's HTML: