using System;
using System.Text.RegularExpressions;
class first
{
public static bool IsNumber(String strNumber)
{
Regex objNotNumberPattern=new Regex("[^0-9.-]");
Regex objTwoDotPattern=new Regex("[0-9]*[.][0-9]*[.][0-9]*");
Regex objTwoMinusPattern=new Regex("[0-9]*[-][0-9]*[-][0-9]*");
String strValidRealPattern="^([-]|[.]|[-.]|[0-9])[0-9]*[.]*[0-9]+$";
String strValidIntegerPattern="^([-]|[0-9])[0-9]*$";
Regex objNumberPattern=new Regex("("+strValidRealPattern+")|("+strValidIntegerPattern+")");
return !objNotNumberPattern.IsMatch(strNumber)&&!objTwoDotPattern.IsMatch(strNumber)&&!objTwoMinusPattern.IsMatch(strNumber)&&objNumberPattern.IsMatch(strNumber);
}
static void Main()
{
String str;
str=Console.ReadLine();
if(first.IsNumber(str))
Console.WriteLine("是数字");
else
Console.WriteLine("不是数字");
Console.ReadKey();
}
}