# Python k = int(input()) a = k*100 + 90 + 9 - k print(a)