n = int(input()) ans = 316 + (n-1) print(ans)