class Program { static void Main(string[] args) { decimal num = decimal.Parse(Console.ReadLine()!); Console.WriteLine(num % 1000000007); } }