import java.util.Scanner;

public class Main {
    public static void main(String[] args)
    {
        Scanner sc = new Scanner(System.in);
        int A = sc.nextInt();
        int B = sc.nextInt();
        int s;
        if(A==B){s = A * 2;}
        else {
            if (Math.max(A, B) == A) {
                s = 2 * A - 1;
            } else {
                s = 2 * B - 1;
            }
        }
        System.out.println(s);

    }
} import java.util.Scanner; Scanner java.util public class Main {
    public static void main(String[] args)
    {
        Scanner sc = new Scanner(System.in);
        int A = sc.nextInt();
        int B = sc.nextInt();
        int s;
        if(A==B){s = A * 2;}
        else {
            if (Math.max(A, B) == A) {
                s = 2 * A - 1;
            } else {
                s = 2 * B - 1;
            }
        }
        System.out.println(s);

    }
} Main public static void main(String[] args)
    {
        Scanner sc = new Scanner(System.in);
        int A = sc.nextInt();
        int B = sc.nextInt();
        int s;
        if(A==B){s = A * 2;}
        else {
            if (Math.max(A, B) == A) {
                s = 2 * A - 1;
            } else {
                s = 2 * B - 1;
            }
        }
        System.out.println(s);

    } main {
        Scanner sc = new Scanner(System.in);
        int A = sc.nextInt();
        int B = sc.nextInt();
        int s;
        if(A==B){s = A * 2;}
        else {
            if (Math.max(A, B) == A) {
                s = 2 * A - 1;
            } else {
                s = 2 * B - 1;
            }
        }
        System.out.println(s);

    } 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 s; s if(A==B){s = A * 2;}
        else {
            if (Math.max(A, B) == A) {
                s = 2 * A - 1;
            } else {
                s = 2 * B - 1;
            }
        } A==B A B {s = A * 2;} s = A * 2 s A * 2 A 2 {
            if (Math.max(A, B) == A) {
                s = 2 * A - 1;
            } else {
                s = 2 * B - 1;
            }
        } if (Math.max(A, B) == A) {
                s = 2 * A - 1;
            } else {
                s = 2 * B - 1;
            } Math.max(A, B) == A Math.max(A, B) Math.max Math A B A {
                s = 2 * A - 1;
            } s = 2 * A - 1 s 2 * A - 1 2 * A 2 A 1 {
                s = 2 * B - 1;
            } s = 2 * B - 1 s 2 * B - 1 2 * B 2 B 1 System.out.println(s) System.out.println System.out System System.out s 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 s;
        if(A==B){s = A * 2;}
        else {
            if (Math.max(A, B) == A) {
                s = 2 * A - 1;
            } else {
                s = 2 * B - 1;
            }
        }
        System.out.println(s);

    }
} public class Main {
    public static void main(String[] args)
    {
        Scanner sc = new Scanner(System.in);
        int A = sc.nextInt();
        int B = sc.nextInt();
        int s;
        if(A==B){s = A * 2;}
        else {
            if (Math.max(A, B) == A) {
                s = 2 * A - 1;
            } else {
                s = 2 * B - 1;
            }
        }
        System.out.println(s);

    }
} Main
import java.util.Scanner;

public class Main {
    public static void main(String[] args)
    {
        Scanner sc = new Scanner(System.in);
        int A = sc.nextInt();
        int B = sc.nextInt();
        int s;
        if(A==B){s = A * 2;}
        else {
            if (Math.max(A, B) == A) {
                s = 2 * A - 1;
            } else {
                s = 2 * B - 1;
            }
        }
        System.out.println(s);

    }
}
