import java.util.Scanner object Main extends App { val sc = new Scanner(System.in) val n = sc.nextLong println(n % 1000000007) }