defmodule Main do def main do [n, h] = IO.read(:line) |> String.trim() |> String.split(" ") |> Enum.map(&String.to_integer/1) tn = IO.read(:line) |> String.trim() |> String.split(" ") |> Enum.map(&String.to_integer/1) solve(n, h, tn) |> Enum.join(" ") |> IO.puts() end def solve(_n, h, tn) do tn |> Enum.map(&(&1 + h)) end end