fork download
  1. import java.util.*;
  2.  
  3. class Ideone
  4. {
  5. public static void main (String[] args) throws java.lang.Exception
  6. {
  7. final int diff = 2541 - 1998;
  8.  
  9. Scanner sc = new Scanner(System.in);
  10.  
  11. int input = sc.nextInt();
  12. System.out.println(input - diff);
  13. }
  14. }
Success #stdin #stdout 0.13s 49696KB
stdin
2541
stdout
1998