Java 343 bytes
Java, 343 bytes
My first golfing attempt
import java.io.PrintWriter;class M{public static void main(String[] a) throws Exception{if(!new java.io.File("x").exists()) try(PrintWriter p=new java.io.PrintWriter("x")){p.write("10");}int b=new java.util.Scanner(new java.io.File("x")).nextInt();try(PrintWriter p=new java.io.PrintWriter("x")){p.print(b/b*b-1+"");System.out.print(b+"");}}}
ungolfed
import java.io.PrintWriter;
class M {
public static void main(String[] a) throws Exception {
if (!new java.io.File("x").exists()) {
try (PrintWriter p = new java.io.PrintWriter("x")) {
p.write("10");
}
}
int b = new java.util.Scanner(new java.io.File("x")).nextInt();
try (PrintWriter p = new java.io.PrintWriter("x")) {
p.print(b / b * b - 1 + "");
System.out.print(b + "");
}
}
}