num = gets.to_i puts 2*((num/3)+(num/5))