defmodule Main do def main do n = IO.read(:line) |> String.trim() |> String.to_integer; IO.puts rem(n, 1000000007) end end