#include using namespace std; int main(){ long long n; cin >> n; const int MOD = 1000000007; cout << n % MOD << endl; }