#include int main(){ long long n; scanf("%lld",&n); printf("%lld\n",n%1000000007ll); return 0; }