let modNum = 1000000007 let inputCount = readLine()!.split(separator: " ").map{Int($0)! % modNum }.reduce(1){$0 * $1 % modNum} print(inputCount)