while(y public static void main(String[] args) {
Scanner in = new Scanner(System.in);
int n =24;
int x = 1;
int y = 2;
while (y < n)
{
if (n % y == 0)
{
n = n / y;
x++;
}
else y++;
}
System.out.println(x + " " + n);
}