mon = int(input()) cost = int(2.5 * 38) print(mon - cost)