defmodule Main do def main do IO.read(:line) |> String.trim() |> String.split(" ") |> Enum.map(&String.to_integer/1) |> solve() |> IO.puts() end def solve([a, b]) when a < b, do: a * 2 def solve([a, b]) when b < a, do: b * 2 end