#include using namespace std; int main() { #ifndef ONLINE_JUDGE freopen("input.txt", "r", stdin); freopen("output.txt", "w", stdout); #endif long long n; cin >> n; if (n < 0) n += 1000000007; cout << (n) % (1000000007); }