Problem:
Score : 100 points

Problem Statement

Compute A \times B.

Constraints

1 \leq A \leq 100

1 \leq B \leq 100

All values in input are integers.

Input

Input is given from Standard Input in the following format:

A B

Output

Print the value A \times B as an integer.

Sample Input 1

2 5

Sample Output 1

10

We have 2 \times 5 = 10.

Sample Input 2

100 100

Sample Output 2

10000

Solution in C# (.NET Core 3.1.201) (judge verdict: Runtime Error)

using System;
using System.Collections.Generic;
using System.Linq;

class Program
{
    public static void Main( )
    {
        long N = int.Parse( Console.ReadLine( ) );
        var A = Console.ReadLine( ).Split( ).Select( long.Parse ).ToArray( );
        long ans = 1;

        if ( A.Any(x=>x==0 ) )
        {
            Console.WriteLine(0);
            return;
        }

        foreach ( var x in A )
        {
            try
            {
                checked
                {
                    ans *= x;
                    if ( ans > 1000000000000000000 )
                    {
                        Console.WriteLine( -1 );
                        return;
                    }
                }
            }
            catch ( OverflowException )
            {
                Console.WriteLine( -1 );
                return;
            }
        
        }
        Console.WriteLine( ans );
    }


}