#include using namespace std; #define ll long long #define rep(i, n) for (int i = 0; i < (n); i++) #define P pair int main() { ll n; int MOD = 1e9+7; cin >> n; cout << n%MOD << endl; }