let input: [Int] = readLine()!.split(separator: " ").map { Int($0)! }
let b = Double(input[0]) * Double(input[2]) + 0.5
print(b)
let input: [Int] = readLine()!.split(separator: " ").map { Int($0)! }
let generated = (input[2] / input[0]) * input[1]
print(generated)