use strict; use warnings; my $ans = <>; print 2*(int($ans/3) + int($ans/5));