#FZZBUZZ # coding: utf-8 N=int(raw_input()) print N/3*2+N/5*2