#include <iostream>
using namespace std;
int main() {
int t;
cin>>t;
int n=1000000007;
cout<<n%t;
// your code goes here
return 0;
}
I2luY2x1ZGUgPGlvc3RyZWFtPgp1c2luZyBuYW1lc3BhY2Ugc3RkOwoKaW50IG1haW4oKSB7CglpbnQgdDsKCWNpbj4+dDsKCWludCBuPTEwMDAwMDAwMDc7Cgljb3V0PDxuJXQ7CgkKCS8vIHlvdXIgY29kZSBnb2VzIGhlcmUKCXJldHVybiAwOwp9