import java.util.*;
class Task2
{
public static void main
(String[] args
) {
int N;
Scanner in
= new Scanner
(System.
in); N = in.nextInt();
if (N % 100 >= 65)
N = 100 * (N / 100 + 1);
if (N % 20 > 15)
N = 20 * (N / 20 + 1);
System.
out.
println((N
/ 100) * 100 + (N
% 100 / 20) * 30 + 2 * (N
% 20)); }
}
aW1wb3J0IGphdmEudXRpbC4qOwoKY2xhc3MgVGFzazIKewoJcHVibGljIHN0YXRpYyB2b2lkIG1haW4gKFN0cmluZ1tdIGFyZ3MpCgl7CgkJaW50IE47CgkJU2Nhbm5lciBpbiA9IG5ldyBTY2FubmVyKFN5c3RlbS5pbik7CgkJTiA9IGluLm5leHRJbnQoKTsKCQlpZiAoTiAlIDEwMCA+PSA2NSkgCgkJCU4gPSAxMDAgKiAoTiAvIDEwMCArIDEpOwoJCWlmIChOICUgMjAgPiAxNSkgCgkJCU4gPSAyMCAqIChOIC8gMjAgKyAxKTsKCQlTeXN0ZW0ub3V0LnByaW50bG4oKE4gLyAxMDApICogMTAwICsgKE4gJSAxMDAgLyAyMCkgKiAzMCArIDIgKiAoTiAlIDIwKSk7Cgl9Cn0=