import java.util.*;


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

        Scanner s = new Scanner(System.in);
        int a = s.nextInt();
        int b = s.nextInt();

        int n = Math.abs(a-b);

        if (n >= 2) {
          System.out.println(Math.max(a, b)+Math.max(a, b)-1);
        // } else if (n == 1){
        //   System.out.println(a + b);
        } else {
          System.out.println(a + b);
        }

    }
} import java.util.*; util.* java public class Main {
    public static void main(String[] args){

        Scanner s = new Scanner(System.in);
        int a = s.nextInt();
        int b = s.nextInt();

        int n = Math.abs(a-b);

        if (n >= 2) {
          System.out.println(Math.max(a, b)+Math.max(a, b)-1);
        // } else if (n == 1){
        //   System.out.println(a + b);
        } else {
          System.out.println(a + b);
        }

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

        Scanner s = new Scanner(System.in);
        int a = s.nextInt();
        int b = s.nextInt();

        int n = Math.abs(a-b);

        if (n >= 2) {
          System.out.println(Math.max(a, b)+Math.max(a, b)-1);
        // } else if (n == 1){
        //   System.out.println(a + b);
        } else {
          System.out.println(a + b);
        }

    } main {

        Scanner s = new Scanner(System.in);
        int a = s.nextInt();
        int b = s.nextInt();

        int n = Math.abs(a-b);

        if (n >= 2) {
          System.out.println(Math.max(a, b)+Math.max(a, b)-1);
        // } else if (n == 1){
        //   System.out.println(a + b);
        } else {
          System.out.println(a + b);
        }

    } Scanner s = new Scanner(System.in); s new Scanner(System.in) int a = s.nextInt(); a s.nextInt() s.nextInt s int b = s.nextInt(); b s.nextInt() s.nextInt s int n = Math.abs(a-b); n Math.abs(a-b) Math.abs Math a-b a b if (n >= 2) {
          System.out.println(Math.max(a, b)+Math.max(a, b)-1);
        // } else if (n == 1){
        //   System.out.println(a + b);
        } else {
          System.out.println(a + b);
        } n >= 2 n 2 {
          System.out.println(Math.max(a, b)+Math.max(a, b)-1);
        // } else if (n == 1){
        //   System.out.println(a + b);
        } System.out.println(Math.max(a, b)+Math.max(a, b)-1) System.out.println System.out System System.out Math.max(a, b)+Math.max(a, b)-1 Math.max(a, b)+Math.max(a, b) Math.max(a, b) Math.max Math a b Math.max(a, b) Math.max Math a b 1 {
          System.out.println(a + b);
        } System.out.println(a + b) System.out.println System.out System System.out a + b a b String[] args args public class Main {
    public static void main(String[] args){

        Scanner s = new Scanner(System.in);
        int a = s.nextInt();
        int b = s.nextInt();

        int n = Math.abs(a-b);

        if (n >= 2) {
          System.out.println(Math.max(a, b)+Math.max(a, b)-1);
        // } else if (n == 1){
        //   System.out.println(a + b);
        } else {
          System.out.println(a + b);
        }

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

        Scanner s = new Scanner(System.in);
        int a = s.nextInt();
        int b = s.nextInt();

        int n = Math.abs(a-b);

        if (n >= 2) {
          System.out.println(Math.max(a, b)+Math.max(a, b)-1);
        // } else if (n == 1){
        //   System.out.println(a + b);
        } else {
          System.out.println(a + b);
        }

    }
} Main
import java.util.*;


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

        Scanner s = new Scanner(System.in);
        int a = s.nextInt();
        int b = s.nextInt();

        int n = Math.abs(a-b);

        if (n >= 2) {
          System.out.println(Math.max(a, b)+Math.max(a, b)-1);
        // } else if (n == 1){
        //   System.out.println(a + b);
        } else {
          System.out.println(a + b);
        }

    }
}