http://codeforces.com/contest/320/problem/A
#include <cstdio>
#include <cstring>
using namespace std; char str[]; int main()
{
scanf("%s",str);
int k=strlen(str);
for(int i=; i<k; i++)
{
if(str[i]!=''&&str[i]!='')
{
printf("NO\n");
return ;
}
if(str[i]=='')
{
if(i==)
{
printf("NO\n");
return ;
}
else if(str[i-]==''&&str[i-]!='')
{
printf("NO\n");
return ;
}
}
}
printf("YES\n");
return ;
}