using System;
using System.Text.RegularExpressions;
public class Program
{
public static void Main()
int val;
Console.WriteLine(int.TryParse("-322",out val));
/*
Regex rx = new Regex(@"^-?[0-9]");
// Define a test string.
string text = "-132a";
// Find matches.
MatchCollection matches = rx.Matches(text);
// Report the number of matches found.
Console.WriteLine("{0} matches found in:\n {1}",
matches.Count,
text);
*/
}