import strutils let n = parseInt stdin.readLine echo (n div 3 + n div 5) * 2