package test;
import java.util.Scanner;
public class pratice {
private static Scanner in;
public static void main(String[] args) {
in = new Scanner(System.in);
int N = 0, ans = 0;
while (in.hasNext()) {
N = 0;
N = in.nextInt();
if (0 <= N && N <= 10) {
System.out.println(6 * N);
} else if (N <= 20) {
System.out.println(60 + 2 * (N - 10));
} else if (N <= 40) {
System.out.println(80 + N - 20);
} else {
System.out.println(100);
}
}
}
}