# coding: utf-8 # Your code here! n = int(input()) print(n % 1000000007)