import strutils
echo stdin.readLine.parseInt mod 1000000007