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