d, p = map(int, input().split(' ')) d = d * (100 + p) print(d) d -= d%100 d /= 100 print(int(d))