using System;
public class Program
{
public static void Main()
int b;
double a,total;
b=10;total=3;
a = Convert.ToDouble(Console.ReadLine());
if ( a>b){
total += b+1;
total = (b-1)*(a+5)*a;
total += b-1;
}
Console.WriteLine(total);