#!/bin/bash
read input
IFS=' '
set -- $input
num1=$1
num2=$2
sum=0

# first choice
if [ $num1 -ge $num2 ]; then
 sum=$((sum+num1))
 ((num1--))
else 
 sum=$((sum+num2))
 ((num2--))
fi

# second choice
if [ $num1 -ge $num2 ]; then
 sum=$((sum+num1))
else 
 sum=$((sum+num2))
fi


echo "$sum"