import java.util.Scanner;

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

    private static void a() {
        Scanner sc = new Scanner(System.in);
        int a = Integer.parseInt(sc.next());
        int b = Integer.parseInt(sc.next());
        int x;
        if (a > b) {
            x = a * 2 -1;
        }else if(a < b){
            x = b * 2 -1;
        }else {
            x = a*2;
        }
        p(x);
    }

    private static void p(Object x) {
        System.out.println(x.toString());
    }
} import java.util.Scanner; Scanner java.util public class Main {
    public static void main(String[] args) {
        a();
    }

    private static void a() {
        Scanner sc = new Scanner(System.in);
        int a = Integer.parseInt(sc.next());
        int b = Integer.parseInt(sc.next());
        int x;
        if (a > b) {
            x = a * 2 -1;
        }else if(a < b){
            x = b * 2 -1;
        }else {
            x = a*2;
        }
        p(x);
    }

    private static void p(Object x) {
        System.out.println(x.toString());
    }
} Main public static void main(String[] args) {
        a();
    } main {
        a();
    } a() a String[] args args private static void a() {
        Scanner sc = new Scanner(System.in);
        int a = Integer.parseInt(sc.next());
        int b = Integer.parseInt(sc.next());
        int x;
        if (a > b) {
            x = a * 2 -1;
        }else if(a < b){
            x = b * 2 -1;
        }else {
            x = a*2;
        }
        p(x);
    } a {
        Scanner sc = new Scanner(System.in);
        int a = Integer.parseInt(sc.next());
        int b = Integer.parseInt(sc.next());
        int x;
        if (a > b) {
            x = a * 2 -1;
        }else if(a < b){
            x = b * 2 -1;
        }else {
            x = a*2;
        }
        p(x);
    } Scanner sc = new Scanner(System.in); sc new Scanner(System.in) int a = Integer.parseInt(sc.next()); a Integer.parseInt(sc.next()) Integer.parseInt Integer sc.next() sc.next sc int b = Integer.parseInt(sc.next()); b Integer.parseInt(sc.next()) Integer.parseInt Integer sc.next() sc.next sc int x; x if (a > b) {
            x = a * 2 -1;
        }else if(a < b){
            x = b * 2 -1;
        }else {
            x = a*2;
        } a > b a b {
            x = a * 2 -1;
        } x = a * 2 -1 x a * 2 -1 a * 2 a 2 1 if(a < b){
            x = b * 2 -1;
        }else {
            x = a*2;
        } a < b a b {
            x = b * 2 -1;
        } x = b * 2 -1 x b * 2 -1 b * 2 b 2 1 {
            x = a*2;
        } x = a*2 x a*2 a 2 p(x) p x private static void p(Object x) {
        System.out.println(x.toString());
    } p {
        System.out.println(x.toString());
    } System.out.println(x.toString()) System.out.println System.out System System.out x.toString() x.toString x Object x x public class Main {
    public static void main(String[] args) {
        a();
    }

    private static void a() {
        Scanner sc = new Scanner(System.in);
        int a = Integer.parseInt(sc.next());
        int b = Integer.parseInt(sc.next());
        int x;
        if (a > b) {
            x = a * 2 -1;
        }else if(a < b){
            x = b * 2 -1;
        }else {
            x = a*2;
        }
        p(x);
    }

    private static void p(Object x) {
        System.out.println(x.toString());
    }
} public class Main {
    public static void main(String[] args) {
        a();
    }

    private static void a() {
        Scanner sc = new Scanner(System.in);
        int a = Integer.parseInt(sc.next());
        int b = Integer.parseInt(sc.next());
        int x;
        if (a > b) {
            x = a * 2 -1;
        }else if(a < b){
            x = b * 2 -1;
        }else {
            x = a*2;
        }
        p(x);
    }

    private static void p(Object x) {
        System.out.println(x.toString());
    }
} Main
import java.util.Scanner;

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

    private static void a() {
        Scanner sc = new Scanner(System.in);
        int a = Integer.parseInt(sc.next());
        int b = Integer.parseInt(sc.next());
        int x;
        if (a > b) {
            x = a * 2 -1;
        }else if(a < b){
            x = b * 2 -1;
        }else {
            x = a*2;
        }
        p(x);
    }

    private static void p(Object x) {
        System.out.println(x.toString());
    }
}
