import std.stdio, std.conv, std.string, std.range, std.math, std.bigint, std.algorithm; void main() { auto N = readln.strip.to!long; ((N / 3 + N / 5) * 2).writeln; }