#include using namespace std; int main(){ long long a;cin>>a; cout << a%(long long)(1000000007) << endl; }