#include<bits/stdc++.h>
using namespace std;
int main()
{
    unsigned long long int n;
    cin>>n;
    cout<<n%1000000007;
}