public class MyClass {
private static int remove_first_digit(int num) {
int total = (int)Math.log10(num); // total - 1 = 6
int first_digit = num / (int)Math.pow(10, (total));
return num - first_digit * (int)Math.pow(10, (total));
}
public static void main(String args[]) {
int n = 8405796;
n = remove_first_digit(n);
System.out.print(n);
}
}
/*
run:
405796
*/