import java.util.Scanner;
import java.util.InputMismatchException;

class Main {
   public static void main(String args[]) {
      int x=0 ,y=0;
      int sum = 0;
      try {
         Scanner scanner = new Scanner(System.in);
         x = scanner.nextInt();
         y = scanner.nextInt();
         scanner.close();
      } catch (InputMismatchException e) {
         System.out.println("error");
      }
      for (int i = 0; i < 2;  i++) {
         if (x<y) {
            sum = sum + y;
            y = y-1;
         }else {
            sum = sum + x;
            x = x-1;
         }
      }
      System.out.println(sum);
   }
} import java.util.Scanner; Scanner java.util import java.util.InputMismatchException; InputMismatchException java.util class Main {
   public static void main(String args[]) {
      int x=0 ,y=0;
      int sum = 0;
      try {
         Scanner scanner = new Scanner(System.in);
         x = scanner.nextInt();
         y = scanner.nextInt();
         scanner.close();
      } catch (InputMismatchException e) {
         System.out.println("error");
      }
      for (int i = 0; i < 2;  i++) {
         if (x<y) {
            sum = sum + y;
            y = y-1;
         }else {
            sum = sum + x;
            x = x-1;
         }
      }
      System.out.println(sum);
   }
} Main public static void main(String args[]) {
      int x=0 ,y=0;
      int sum = 0;
      try {
         Scanner scanner = new Scanner(System.in);
         x = scanner.nextInt();
         y = scanner.nextInt();
         scanner.close();
      } catch (InputMismatchException e) {
         System.out.println("error");
      }
      for (int i = 0; i < 2;  i++) {
         if (x<y) {
            sum = sum + y;
            y = y-1;
         }else {
            sum = sum + x;
            x = x-1;
         }
      }
      System.out.println(sum);
   } main {
      int x=0 ,y=0;
      int sum = 0;
      try {
         Scanner scanner = new Scanner(System.in);
         x = scanner.nextInt();
         y = scanner.nextInt();
         scanner.close();
      } catch (InputMismatchException e) {
         System.out.println("error");
      }
      for (int i = 0; i < 2;  i++) {
         if (x<y) {
            sum = sum + y;
            y = y-1;
         }else {
            sum = sum + x;
            x = x-1;
         }
      }
      System.out.println(sum);
   } int x=0 x 0 y=0; y 0 int sum = 0; sum 0 try {
         Scanner scanner = new Scanner(System.in);
         x = scanner.nextInt();
         y = scanner.nextInt();
         scanner.close();
      } catch (InputMismatchException e) {
         System.out.println("error");
      } catch (InputMismatchException e) {
         System.out.println("error");
      } InputMismatchException e {
         System.out.println("error");
      } System.out.println("error") System.out.println System.out System System.out "error" {
         Scanner scanner = new Scanner(System.in);
         x = scanner.nextInt();
         y = scanner.nextInt();
         scanner.close();
      } Scanner scanner = new Scanner(System.in); scanner new Scanner(System.in) x = scanner.nextInt() x scanner.nextInt() scanner.nextInt scanner y = scanner.nextInt() y scanner.nextInt() scanner.nextInt scanner scanner.close() scanner.close scanner for (int i = 0; i < 2;  i++) {
         if (x<y) {
            sum = sum + y;
            y = y-1;
         }else {
            sum = sum + x;
            x = x-1;
         }
      } int i = 0; int i = 0; i 0 i < 2 i 2 i++ i++ i {
         if (x<y) {
            sum = sum + y;
            y = y-1;
         }else {
            sum = sum + x;
            x = x-1;
         }
      } {
         if (x<y) {
            sum = sum + y;
            y = y-1;
         }else {
            sum = sum + x;
            x = x-1;
         }
      } if (x<y) {
            sum = sum + y;
            y = y-1;
         }else {
            sum = sum + x;
            x = x-1;
         } x<y x y {
            sum = sum + y;
            y = y-1;
         } sum = sum + y sum sum + y sum y y = y-1 y y-1 y 1 {
            sum = sum + x;
            x = x-1;
         } sum = sum + x sum sum + x sum x x = x-1 x x-1 x 1 System.out.println(sum) System.out.println System.out System System.out sum String args[] args
import java.util.Scanner;
import java.util.InputMismatchException;

class Main {
   public static void main(String args[]) {
      int x=0 ,y=0;
      int sum = 0;
      try {
         Scanner scanner = new Scanner(System.in);
         x = scanner.nextInt();
         y = scanner.nextInt();
         scanner.close();
      } catch (InputMismatchException e) {
         System.out.println("error");
      }
      for (int i = 0; i < 2;  i++) {
         if (x<y) {
            sum = sum + y;
            y = y-1;
         }else {
            sum = sum + x;
            x = x-1;
         }
      }
      System.out.println(sum);
   }
}