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