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