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 total = 0;
        int count = 0;
        while (count<2) {
            if (a > b) {
                total += a;
                a--;
                count++;
            } else if (a < b) {
                total += b;
                b--;
                count++;
            } else if (a == b) {
                total += a;
                a--;
                count++;
            }
        }
        System.out.println(total);
    }

} 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 total = 0;
        int count = 0;
        while (count<2) {
            if (a > b) {
                total += a;
                a--;
                count++;
            } else if (a < b) {
                total += b;
                b--;
                count++;
            } else if (a == b) {
                total += a;
                a--;
                count++;
            }
        }
        System.out.println(total);
    }

} Main public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        int a = sc.nextInt();
        int b = sc.nextInt();
        int total = 0;
        int count = 0;
        while (count<2) {
            if (a > b) {
                total += a;
                a--;
                count++;
            } else if (a < b) {
                total += b;
                b--;
                count++;
            } else if (a == b) {
                total += a;
                a--;
                count++;
            }
        }
        System.out.println(total);
    } main {
        Scanner sc = new Scanner(System.in);
        int a = sc.nextInt();
        int b = sc.nextInt();
        int total = 0;
        int count = 0;
        while (count<2) {
            if (a > b) {
                total += a;
                a--;
                count++;
            } else if (a < b) {
                total += b;
                b--;
                count++;
            } else if (a == b) {
                total += a;
                a--;
                count++;
            }
        }
        System.out.println(total);
    } 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 total = 0; total 0 int count = 0; count 0 while (count<2) {
            if (a > b) {
                total += a;
                a--;
                count++;
            } else if (a < b) {
                total += b;
                b--;
                count++;
            } else if (a == b) {
                total += a;
                a--;
                count++;
            }
        } count<2 count 2 {
            if (a > b) {
                total += a;
                a--;
                count++;
            } else if (a < b) {
                total += b;
                b--;
                count++;
            } else if (a == b) {
                total += a;
                a--;
                count++;
            }
        } if (a > b) {
                total += a;
                a--;
                count++;
            } else if (a < b) {
                total += b;
                b--;
                count++;
            } else if (a == b) {
                total += a;
                a--;
                count++;
            } a > b a b {
                total += a;
                a--;
                count++;
            } total += a total a a-- a count++ count if (a < b) {
                total += b;
                b--;
                count++;
            } else if (a == b) {
                total += a;
                a--;
                count++;
            } a < b a b {
                total += b;
                b--;
                count++;
            } total += b total b b-- b count++ count if (a == b) {
                total += a;
                a--;
                count++;
            } a == b a b {
                total += a;
                a--;
                count++;
            } total += a total a a-- a count++ count System.out.println(total) System.out.println System.out System System.out total 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 total = 0;
        int count = 0;
        while (count<2) {
            if (a > b) {
                total += a;
                a--;
                count++;
            } else if (a < b) {
                total += b;
                b--;
                count++;
            } else if (a == b) {
                total += a;
                a--;
                count++;
            }
        }
        System.out.println(total);
    }

} public class Main {

    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        int a = sc.nextInt();
        int b = sc.nextInt();
        int total = 0;
        int count = 0;
        while (count<2) {
            if (a > b) {
                total += a;
                a--;
                count++;
            } else if (a < b) {
                total += b;
                b--;
                count++;
            } else if (a == b) {
                total += a;
                a--;
                count++;
            }
        }
        System.out.println(total);
    }

} 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 total = 0;
        int count = 0;
        while (count<2) {
            if (a > b) {
                total += a;
                a--;
                count++;
            } else if (a < b) {
                total += b;
                b--;
                count++;
            } else if (a == b) {
                total += a;
                a--;
                count++;
            }
        }
        System.out.println(total);
    }

}