N = int(raw_input()) print N/3*2 + N/5 *2