using System; using System.Collections.Generic; using System.Linq; namespace BinaryTree { public static class Program { public static void Main() { Console.WriteLine(long.Parse(Console.ReadLine()) % 1000000007); } } }