#include <iostream>
#include <string>
#include <algorithm>
using namespace std;
bool Re(char s){return (isdigit(s) || s == '.');}
string R(string s){return (int(count_if(s.begin(),s.end(),Re)) == int(s.size())) ? ("Yes") : ("No");}
int main()
{
cout << (R("2366687")) << endl << (R("hg5456")) << endl << (R("54f56")) << endl << (R("5.456")) << endl;
return 0;
}