//package abc124.a;

import 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 max1 = Math.max(a, b);
        int min1 = Math.min(a, b);
        int max2 = Math.max(max1 - 1, min1);
        System.out.println(max1 + max2);
        sc.close();
    }
} import java.util.*; util.* java public class Main {
    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        int a = sc.nextInt();
        int b = sc.nextInt();
        int max1 = Math.max(a, b);
        int min1 = Math.min(a, b);
        int max2 = Math.max(max1 - 1, min1);
        System.out.println(max1 + max2);
        sc.close();
    }
} Main public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        int a = sc.nextInt();
        int b = sc.nextInt();
        int max1 = Math.max(a, b);
        int min1 = Math.min(a, b);
        int max2 = Math.max(max1 - 1, min1);
        System.out.println(max1 + max2);
        sc.close();
    } main {
        Scanner sc = new Scanner(System.in);
        int a = sc.nextInt();
        int b = sc.nextInt();
        int max1 = Math.max(a, b);
        int min1 = Math.min(a, b);
        int max2 = Math.max(max1 - 1, min1);
        System.out.println(max1 + max2);
        sc.close();
    } 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 max1 = Math.max(a, b); max1 Math.max(a, b) Math.max Math a b int min1 = Math.min(a, b); min1 Math.min(a, b) Math.min Math a b int max2 = Math.max(max1 - 1, min1); max2 Math.max(max1 - 1, min1) Math.max Math max1 - 1 max1 1 min1 System.out.println(max1 + max2) System.out.println System.out System System.out max1 + max2 max1 max2 sc.close() sc.close sc 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 max1 = Math.max(a, b);
        int min1 = Math.min(a, b);
        int max2 = Math.max(max1 - 1, min1);
        System.out.println(max1 + max2);
        sc.close();
    }
} public class Main {
    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        int a = sc.nextInt();
        int b = sc.nextInt();
        int max1 = Math.max(a, b);
        int min1 = Math.min(a, b);
        int max2 = Math.max(max1 - 1, min1);
        System.out.println(max1 + max2);
        sc.close();
    }
} Main
//package abc124.a;

import 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 max1 = Math.max(a, b);
        int min1 = Math.min(a, b);
        int max2 = Math.max(max1 - 1, min1);
        System.out.println(max1 + max2);
        sc.close();
    }
}