public class Main

{

public static void main(String args[])

{

int n, m, a, i = 1, checker = 0;

Scanner s=new Scanner(System.in);

System.out.print("Enter any numbers");

n = s.nextInt();

m = n;

while(n > 0)

{

n = n / 10;

checker++;

}

while(m > 0)

{

a = m % 10;

System.out.println("numbers position is "+checker+":"+a);

m = m / 10;

checker--;

}

}

}

numbers position is 4:7

numbers position is 3:6

numbers position is 2:5

numbers position is 1:4