# coding: utf-8 # Here your code ! a=int(input()) print ((a//3+a//5)*2)