import java.util.*;
public class Main {

    public static void main(String[] args) {
        Scanner yomi = new Scanner(System.in);
        byte a = yomi.nextByte();
        byte b = yomi.nextByte();
        int kai=0;
        for (byte i=0;i<2;i++){
            if (a>b){
                kai=kai+a;
                a--;
            }else {
                kai = kai + b;
                b--;

            }
        }
        System.out.println(kai);

        }

    } import java.util.*; util.* java public class Main {

    public static void main(String[] args) {
        Scanner yomi = new Scanner(System.in);
        byte a = yomi.nextByte();
        byte b = yomi.nextByte();
        int kai=0;
        for (byte i=0;i<2;i++){
            if (a>b){
                kai=kai+a;
                a--;
            }else {
                kai = kai + b;
                b--;

            }
        }
        System.out.println(kai);

        }

    } Main public static void main(String[] args) {
        Scanner yomi = new Scanner(System.in);
        byte a = yomi.nextByte();
        byte b = yomi.nextByte();
        int kai=0;
        for (byte i=0;i<2;i++){
            if (a>b){
                kai=kai+a;
                a--;
            }else {
                kai = kai + b;
                b--;

            }
        }
        System.out.println(kai);

        } main {
        Scanner yomi = new Scanner(System.in);
        byte a = yomi.nextByte();
        byte b = yomi.nextByte();
        int kai=0;
        for (byte i=0;i<2;i++){
            if (a>b){
                kai=kai+a;
                a--;
            }else {
                kai = kai + b;
                b--;

            }
        }
        System.out.println(kai);

        } Scanner yomi = new Scanner(System.in); yomi new Scanner(System.in) byte a = yomi.nextByte(); a yomi.nextByte() yomi.nextByte yomi byte b = yomi.nextByte(); b yomi.nextByte() yomi.nextByte yomi int kai=0; kai 0 for (byte i=0;i<2;i++){
            if (a>b){
                kai=kai+a;
                a--;
            }else {
                kai = kai + b;
                b--;

            }
        } byte i=0; byte i=0; i 0 i<2 i 2 i++ i++ i {
            if (a>b){
                kai=kai+a;
                a--;
            }else {
                kai = kai + b;
                b--;

            }
        } {
            if (a>b){
                kai=kai+a;
                a--;
            }else {
                kai = kai + b;
                b--;

            }
        } if (a>b){
                kai=kai+a;
                a--;
            }else {
                kai = kai + b;
                b--;

            } a>b a b {
                kai=kai+a;
                a--;
            } kai=kai+a kai kai+a kai a a-- a {
                kai = kai + b;
                b--;

            } kai = kai + b kai kai + b kai b b-- b System.out.println(kai) System.out.println System.out System System.out kai String[] args args public class Main {

    public static void main(String[] args) {
        Scanner yomi = new Scanner(System.in);
        byte a = yomi.nextByte();
        byte b = yomi.nextByte();
        int kai=0;
        for (byte i=0;i<2;i++){
            if (a>b){
                kai=kai+a;
                a--;
            }else {
                kai = kai + b;
                b--;

            }
        }
        System.out.println(kai);

        }

    } public class Main {

    public static void main(String[] args) {
        Scanner yomi = new Scanner(System.in);
        byte a = yomi.nextByte();
        byte b = yomi.nextByte();
        int kai=0;
        for (byte i=0;i<2;i++){
            if (a>b){
                kai=kai+a;
                a--;
            }else {
                kai = kai + b;
                b--;

            }
        }
        System.out.println(kai);

        }

    } Main
import java.util.*;
public class Main {

    public static void main(String[] args) {
        Scanner yomi = new Scanner(System.in);
        byte a = yomi.nextByte();
        byte b = yomi.nextByte();
        int kai=0;
        for (byte i=0;i<2;i++){
            if (a>b){
                kai=kai+a;
                a--;
            }else {
                kai = kai + b;
                b--;

            }
        }
        System.out.println(kai);

        }

    }