let inpt = Int(readLine()!)! var ret = 2 * (inpt / 3) ret += 2 * (inpt / 5) print(ret)