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