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