fork download
  1. class Main{
  2. public static long func(long n){
  3. if(n <= 100){
  4. return 91;
  5. }
  6. else {
  7. return n - 10;
  8. }
  9. }
  10. public static void main (String[] args){
  11. java.util.Scanner in = new java.util.Scanner(System.in);
  12. long num = in.nextInt();
  13. System.out.println(func(num));
  14. }
  15. }
Success #stdin #stdout 0.1s 35504KB
stdin
5
stdout
91