#include <iostream>
using namespace std;
//nr de termeni care respecta conditia
int nr_cond=0;
//valori reale x si y
double x,y;
void verificare_cond(int n){
if(n>=x&&n<=y){
nr_cond++;
}
}
void generare_recursiva(int n,int count){
verificare_cond(count);
if(count<=n)
{
cout<<count;
count++;
generare_recursiva(n,count);
}
}
int main(){
int n;
cout<<"Introduceti numarul: ";
cin>>n;
cout<<"Introduceti numerele reale:";
cin>>x>>y;
generare_recursiva(n,1);
cout<<" Nr de termeni ce respecta conditia: "<<nr_cond;
return 0;
}