#include using namespace std; int main() { int64_t N; cin >> N; cout << N % 1000000007 << endl; return 0; }