import std.stdio, std.string, std.conv; void main() { ulong n = readln.chomp.to!ulong; ulong res = to!ulong(n/3 + n/5) * 2; res.writeln; }