A = gets.split.map( &:to_i ) print A.min * 2