import java.util.*;
import java.io.*;

public class Main {

    public static void main(String[] args) {
        BufferedReader in = new BufferedReader(new InputStreamReader(System.in));
        try {
            StringTokenizer st = new StringTokenizer(in.readLine());
            int a = Integer.parseInt(st.nextToken());
            int b = Integer.parseInt(st.nextToken());
            if (a == b) {
                System.out.println(a+b);
            } else if (a > b) {
                System.out.println(a + a - 1);
            } else {
                System.out.println(b + b - 1);
            }
        } catch (IOException ex) {

        }
    }

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

    public static void main(String[] args) {
        BufferedReader in = new BufferedReader(new InputStreamReader(System.in));
        try {
            StringTokenizer st = new StringTokenizer(in.readLine());
            int a = Integer.parseInt(st.nextToken());
            int b = Integer.parseInt(st.nextToken());
            if (a == b) {
                System.out.println(a+b);
            } else if (a > b) {
                System.out.println(a + a - 1);
            } else {
                System.out.println(b + b - 1);
            }
        } catch (IOException ex) {

        }
    }

} Main public static void main(String[] args) {
        BufferedReader in = new BufferedReader(new InputStreamReader(System.in));
        try {
            StringTokenizer st = new StringTokenizer(in.readLine());
            int a = Integer.parseInt(st.nextToken());
            int b = Integer.parseInt(st.nextToken());
            if (a == b) {
                System.out.println(a+b);
            } else if (a > b) {
                System.out.println(a + a - 1);
            } else {
                System.out.println(b + b - 1);
            }
        } catch (IOException ex) {

        }
    } main {
        BufferedReader in = new BufferedReader(new InputStreamReader(System.in));
        try {
            StringTokenizer st = new StringTokenizer(in.readLine());
            int a = Integer.parseInt(st.nextToken());
            int b = Integer.parseInt(st.nextToken());
            if (a == b) {
                System.out.println(a+b);
            } else if (a > b) {
                System.out.println(a + a - 1);
            } else {
                System.out.println(b + b - 1);
            }
        } catch (IOException ex) {

        }
    } BufferedReader in = new BufferedReader(new InputStreamReader(System.in)); in new BufferedReader(new InputStreamReader(System.in)) try {
            StringTokenizer st = new StringTokenizer(in.readLine());
            int a = Integer.parseInt(st.nextToken());
            int b = Integer.parseInt(st.nextToken());
            if (a == b) {
                System.out.println(a+b);
            } else if (a > b) {
                System.out.println(a + a - 1);
            } else {
                System.out.println(b + b - 1);
            }
        } catch (IOException ex) {

        } catch (IOException ex) {

        } IOException ex {

        } {
            StringTokenizer st = new StringTokenizer(in.readLine());
            int a = Integer.parseInt(st.nextToken());
            int b = Integer.parseInt(st.nextToken());
            if (a == b) {
                System.out.println(a+b);
            } else if (a > b) {
                System.out.println(a + a - 1);
            } else {
                System.out.println(b + b - 1);
            }
        } StringTokenizer st = new StringTokenizer(in.readLine()); st new StringTokenizer(in.readLine()) int a = Integer.parseInt(st.nextToken()); a Integer.parseInt(st.nextToken()) Integer.parseInt Integer st.nextToken() st.nextToken st int b = Integer.parseInt(st.nextToken()); b Integer.parseInt(st.nextToken()) Integer.parseInt Integer st.nextToken() st.nextToken st if (a == b) {
                System.out.println(a+b);
            } else if (a > b) {
                System.out.println(a + a - 1);
            } else {
                System.out.println(b + b - 1);
            } a == b a b {
                System.out.println(a+b);
            } System.out.println(a+b) System.out.println System.out System System.out a+b a b if (a > b) {
                System.out.println(a + a - 1);
            } else {
                System.out.println(b + b - 1);
            } a > b a b {
                System.out.println(a + a - 1);
            } System.out.println(a + a - 1) System.out.println System.out System System.out a + a - 1 a + a a a 1 {
                System.out.println(b + b - 1);
            } System.out.println(b + b - 1) System.out.println System.out System System.out b + b - 1 b + b b b 1 String[] args args public class Main {

    public static void main(String[] args) {
        BufferedReader in = new BufferedReader(new InputStreamReader(System.in));
        try {
            StringTokenizer st = new StringTokenizer(in.readLine());
            int a = Integer.parseInt(st.nextToken());
            int b = Integer.parseInt(st.nextToken());
            if (a == b) {
                System.out.println(a+b);
            } else if (a > b) {
                System.out.println(a + a - 1);
            } else {
                System.out.println(b + b - 1);
            }
        } catch (IOException ex) {

        }
    }

} public class Main {

    public static void main(String[] args) {
        BufferedReader in = new BufferedReader(new InputStreamReader(System.in));
        try {
            StringTokenizer st = new StringTokenizer(in.readLine());
            int a = Integer.parseInt(st.nextToken());
            int b = Integer.parseInt(st.nextToken());
            if (a == b) {
                System.out.println(a+b);
            } else if (a > b) {
                System.out.println(a + a - 1);
            } else {
                System.out.println(b + b - 1);
            }
        } catch (IOException ex) {

        }
    }

} Main
import java.util.*;
import java.io.*;

public class Main {

    public static void main(String[] args) {
        BufferedReader in = new BufferedReader(new InputStreamReader(System.in));
        try {
            StringTokenizer st = new StringTokenizer(in.readLine());
            int a = Integer.parseInt(st.nextToken());
            int b = Integer.parseInt(st.nextToken());
            if (a == b) {
                System.out.println(a+b);
            } else if (a > b) {
                System.out.println(a + a - 1);
            } else {
                System.out.println(b + b - 1);
            }
        } catch (IOException ex) {

        }
    }

}