import std.functional,
       std.algorithm,
       std.bigint,
       std.string,
       std.traits,
       std.array,
       std.range,
       std.stdio,
       std.conv;


void main() {
  int n = readln.chomp.to!int;
  int k = n / 15;

  writeln(n * 800 - k * 200);
}
