import java.util.Scanner;
public class Main {

    public static void main(String[] args) {
        Scanner Ent = new Scanner(System.in);
        int a = Ent.nextInt();
        int b = Ent.nextInt();
        int suma1 = 2*a - 1;
        int suma2 = 2*b - 1;
        int suma3 = a + b;
        System.out.println(Math.max(suma1, Math.max(suma2, suma3)));
    }
} import java.util.Scanner; Scanner java.util public class Main {

    public static void main(String[] args) {
        Scanner Ent = new Scanner(System.in);
        int a = Ent.nextInt();
        int b = Ent.nextInt();
        int suma1 = 2*a - 1;
        int suma2 = 2*b - 1;
        int suma3 = a + b;
        System.out.println(Math.max(suma1, Math.max(suma2, suma3)));
    }
} Main public static void main(String[] args) {
        Scanner Ent = new Scanner(System.in);
        int a = Ent.nextInt();
        int b = Ent.nextInt();
        int suma1 = 2*a - 1;
        int suma2 = 2*b - 1;
        int suma3 = a + b;
        System.out.println(Math.max(suma1, Math.max(suma2, suma3)));
    } main {
        Scanner Ent = new Scanner(System.in);
        int a = Ent.nextInt();
        int b = Ent.nextInt();
        int suma1 = 2*a - 1;
        int suma2 = 2*b - 1;
        int suma3 = a + b;
        System.out.println(Math.max(suma1, Math.max(suma2, suma3)));
    } Scanner Ent = new Scanner(System.in); Ent new Scanner(System.in) int a = Ent.nextInt(); a Ent.nextInt() Ent.nextInt Ent int b = Ent.nextInt(); b Ent.nextInt() Ent.nextInt Ent int suma1 = 2*a - 1; suma1 2*a - 1 2*a 2 a 1 int suma2 = 2*b - 1; suma2 2*b - 1 2*b 2 b 1 int suma3 = a + b; suma3 a + b a b System.out.println(Math.max(suma1, Math.max(suma2, suma3))) System.out.println System.out System System.out Math.max(suma1, Math.max(suma2, suma3)) Math.max Math suma1 Math.max(suma2, suma3) Math.max Math suma2 suma3 String[] args args public class Main {

    public static void main(String[] args) {
        Scanner Ent = new Scanner(System.in);
        int a = Ent.nextInt();
        int b = Ent.nextInt();
        int suma1 = 2*a - 1;
        int suma2 = 2*b - 1;
        int suma3 = a + b;
        System.out.println(Math.max(suma1, Math.max(suma2, suma3)));
    }
} public class Main {

    public static void main(String[] args) {
        Scanner Ent = new Scanner(System.in);
        int a = Ent.nextInt();
        int b = Ent.nextInt();
        int suma1 = 2*a - 1;
        int suma2 = 2*b - 1;
        int suma3 = a + b;
        System.out.println(Math.max(suma1, Math.max(suma2, suma3)));
    }
} Main
import java.util.Scanner;
public class Main {

    public static void main(String[] args) {
        Scanner Ent = new Scanner(System.in);
        int a = Ent.nextInt();
        int b = Ent.nextInt();
        int suma1 = 2*a - 1;
        int suma2 = 2*b - 1;
        int suma3 = a + b;
        System.out.println(Math.max(suma1, Math.max(suma2, suma3)));
    }
}
