#include<bits/stdc++.h> using namespace std; int main() { int n; cin >> n; cout<<n*3/2%1000000007<<endl; return 0; }