#include<iostream.h>
void main()
{
int nr,nr1,c=0,i=1,aux1=0,aux2=0;
cout<<"numar copil 1="; cin>>nr1;
i++;
while(nr!=0)
{
cout<<"numar copil: "<<i<<"="; cin>>nr;
i++;
while(nr1!=0)
{
aux1=nr1%10;
nr1=nr1/10;
}
while(nr!=0)
{
aux2=nr%10;
nr=nr/10;
}
nr1=aux1;
nr=aux2;
if(aux1<aux2 || aux1>aux2)
c++;
aux1=0;
aux2=0;
}
cout<<c;
}