Sir/maam
What is the possible error in this program:
Scanner obj = new Scanner(System.in);
long x = obj.nextLong();
if(x<=Math.pow(10,18)){
long original = x;
int inc = 1;
long rem = 0;
while(x>0){
rem = x%10;
if(rem>4){
original = original - (rem * inc);
original = original + ((9 - rem) * inc);
}
x/=10;
inc*=10;
}
System.out.println(original);
}