Getting error on below code

using System;
using System.Linq;
using System.IO;
using System.Text;
using System.Collections;
using System.Collections.Generic;

 * Auto-generated code below aims at helping you parse
 * the standard input according to the problem statement.
    class Solution
        static void Main(string[] args)
            string S = Console.ReadLine();
            char[] charArray = S.ToCharArray();

error CS1001: Unexpected symbol `(’, expecting identifier.

Can anyone tell me what’s wrong i am doing here?

which puzzle?