import java.util.Scanner;
import java.util.List;
import java.util.ArrayList;
import java.util.Objects;
import java.lang.StringBuilder;

public class Main {
  public static void main(String[] args ){

    Scanner sc = new Scanner(System.in);

    int A = sc.nextInt();
    int B = sc.nextInt();

    int coins = 0;
    for(int i = 0; i < 2; i++) {
      if (A > B) {
        coins += A;
        A--;
      } else {
        coins += B;
        B--;
      }
    }

    System.out.println(coins);

  }
} import java.util.Scanner; Scanner java.util import java.util.List; List java.util import java.util.ArrayList; ArrayList java.util import java.util.Objects; Objects java.util import java.lang.StringBuilder; StringBuilder java.lang public class Main {
  public static void main(String[] args ){

    Scanner sc = new Scanner(System.in);

    int A = sc.nextInt();
    int B = sc.nextInt();

    int coins = 0;
    for(int i = 0; i < 2; i++) {
      if (A > B) {
        coins += A;
        A--;
      } else {
        coins += B;
        B--;
      }
    }

    System.out.println(coins);

  }
} Main public static void main(String[] args ){

    Scanner sc = new Scanner(System.in);

    int A = sc.nextInt();
    int B = sc.nextInt();

    int coins = 0;
    for(int i = 0; i < 2; i++) {
      if (A > B) {
        coins += A;
        A--;
      } else {
        coins += B;
        B--;
      }
    }

    System.out.println(coins);

  } main {

    Scanner sc = new Scanner(System.in);

    int A = sc.nextInt();
    int B = sc.nextInt();

    int coins = 0;
    for(int i = 0; i < 2; i++) {
      if (A > B) {
        coins += A;
        A--;
      } else {
        coins += B;
        B--;
      }
    }

    System.out.println(coins);

  } Scanner sc = new Scanner(System.in); sc new Scanner(System.in) int A = sc.nextInt(); A sc.nextInt() sc.nextInt sc int B = sc.nextInt(); B sc.nextInt() sc.nextInt sc int coins = 0; coins 0 for(int i = 0; i < 2; i++) {
      if (A > B) {
        coins += A;
        A--;
      } else {
        coins += B;
        B--;
      }
    } int i = 0; int i = 0; i 0 i < 2 i 2 i++ i++ i {
      if (A > B) {
        coins += A;
        A--;
      } else {
        coins += B;
        B--;
      }
    } {
      if (A > B) {
        coins += A;
        A--;
      } else {
        coins += B;
        B--;
      }
    } if (A > B) {
        coins += A;
        A--;
      } else {
        coins += B;
        B--;
      } A > B A B {
        coins += A;
        A--;
      } coins += A coins A A-- A {
        coins += B;
        B--;
      } coins += B coins B B-- B System.out.println(coins) System.out.println System.out System System.out coins String[] args args public class Main {
  public static void main(String[] args ){

    Scanner sc = new Scanner(System.in);

    int A = sc.nextInt();
    int B = sc.nextInt();

    int coins = 0;
    for(int i = 0; i < 2; i++) {
      if (A > B) {
        coins += A;
        A--;
      } else {
        coins += B;
        B--;
      }
    }

    System.out.println(coins);

  }
} public class Main {
  public static void main(String[] args ){

    Scanner sc = new Scanner(System.in);

    int A = sc.nextInt();
    int B = sc.nextInt();

    int coins = 0;
    for(int i = 0; i < 2; i++) {
      if (A > B) {
        coins += A;
        A--;
      } else {
        coins += B;
        B--;
      }
    }

    System.out.println(coins);

  }
} Main
import java.util.Scanner;
import java.util.List;
import java.util.ArrayList;
import java.util.Objects;
import java.lang.StringBuilder;

public class Main {
  public static void main(String[] args ){

    Scanner sc = new Scanner(System.in);

    int A = sc.nextInt();
    int B = sc.nextInt();

    int coins = 0;
    for(int i = 0; i < 2; i++) {
      if (A > B) {
        coins += A;
        A--;
      } else {
        coins += B;
        B--;
      }
    }

    System.out.println(coins);

  }
}
