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