#include <iostream>
#include <vector>
using namespace std;
int main(){
vector<int> a(1001);
int x=2,y=3,z=5;
a[x]=a[y]=1;
while(z<=1000){
a[z]=1;
x=z;
z+=y;
y=x;
}
int n;
while(cin>>n&&n){
if(a[n])
cout<<"Roberto";
else
cout<<"Alicia";
cout<<endl;
}
}
#include <vector>
using namespace std;
int main(){
vector<int> a(1001);
int x=2,y=3,z=5;
a[x]=a[y]=1;
while(z<=1000){
a[z]=1;
x=z;
z+=y;
y=x;
}
int n;
while(cin>>n&&n){
if(a[n])
cout<<"Roberto";
else
cout<<"Alicia";
cout<<endl;
}
}
Comments
Post a Comment