﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Bonus_score
{
    class Program
    {
        static void Main(string[] args)
        {
            var score = int.Parse(Console.ReadLine());
            if (score<=0||score>=10)
            {
                Console.WriteLine("invalid score");
            }
            else if (score >= 1 && score <= 3) Console.WriteLine(score*10);
            else if (score >= 4 && score <= 6) Console.WriteLine(score*100);
            else if (score>=7&&score<=9) Console.WriteLine(score*1000);

        }
    }
}
