using System; using static System.Console; using System.Linq; using System.Collections.Generic; class Program { static long NN => long.Parse(ReadLine()); public static void Main() { var n = NN; WriteLine(n % 1_000_000_007); } }