from turtle import * vy = int(input()) vx = int(input()) waga = int(input()) opur=waga/10 while ycor() >= 0: vy -= waga - opur if vx - opur >= 0: vx -= opur else: vx = 0 goto(vx + xcor(), vy + ycor()) print(vx, vy) mainloop()