#include using namespace std; typedef long long ll; #define int ll #define _FastIO ios_base::sync_with_stdio(0); cin.tie(0); cout.tie(0) #define pii pair #define pb push_back #define F first #define S second const int mod = 1e9 + 7; const int MAXX = 1e6 + 5; int t , n; int a[MAXX]; string s; signed main() { _FastIO; cin >> n; cout << n % mod << endl; return 0; }