fork(3) download
  1. # S. Kondrashov
  2. a = int(input())
  3. b = int(input())
  4. n = int(input())
  5. if(a>99 or b>99 or n>99):
  6. print("INPUT DATA ERROR")
  7. else:
  8. s = (a*100.0 +b)*n
  9. print(int(s)/100, int((s/100 - int(s)/100)*100))
Success #stdin #stdout 0.01s 6360KB
stdin
99
99
99
stdout
(9899, 1)