<reponame>tarsic99/Python_coursera<gh_stars>0
A = int(input())
B = int(input())
N = int(input())
rub = (A * N) + ((B * N) // 100)
kop = B * N % 100
print(rub, kop)

A = int(input())
B = int(input())
N = int(input())
rub = (A * N) + ((B * N) // 100)
kop = B * N % 100
print(rub, kop)