# your code goes here # encoding: utf-8 #ほぼ初めてのRubyなのでいろいろと間違いや勘違いが n=STDIN.gets n=n.to_i a=n/3 b=n/5 puts a*2+b*2