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