﻿/*   Write a program that applies bonus score to given score in the range [1…9] by the following rules:
     If the score is between 1 and 3, the program multiplies it by 10.
     If the score is between 4 and 6, the program multiplies it by 100.
     If the score is between 7 and 9, the program multiplies it by 1000.
     If the score is less than 0 or more than 9, the program prints "invalid score". */

using System;

class BonusScore
{
    static void Main()
    {
        short score = short.Parse(Console.ReadLine());

        if (1 <= score && score <= 3)
        {
            Console.WriteLine(score * 10);
        }
        else if (4 <= score && score <= 6)
        {
            Console.WriteLine(score * 100);
        }
        else if (7 <= score && score <= 9)
        {
            Console.WriteLine(score * 1000);
        }
        else
        {
            Console.WriteLine("invalid score");
        }
    }
}

