#include <stdlib.h>
#include <stdio.h>
#include <iostream>
#include<string>
using namespace std;
/*
string(const char *s); //用c字符串s初始化
string(int n,char c); //用n个字符c初始化
string s2=”hello”;
int capacity()const; //返回当前容量（即string中不必增加内存即可存放的元素个数）
int max_size()const; //返回string对象中可存放的最大字符串的长度
int size()const; //返回当前字符串的大小
int length()const; //返回当前字符串的长度
bool empty()const; //当前字符串是否为空
void resize(int len,char c);//把字符串当前大小置为len，并用字符c填充不足的部分
*/
int main()
{
	string s1 = "hello world hello!", s2 = "hello";
	char *s3 = "boy";
	cout << s1.find(s2)<<endl;		//从s1的第0个位置开始查找s2，返回第一个匹配串的下标：0
	cout << s1.find(s2, 1) << endl; //从s1的第1个位置开始查找，返回12
	cout << s1.find(s3, 0) << endl; //s1中查找s3(char*),失败，返回string::npos(-1)
	cout << s1.find(s3, 0, 10) << endl; //s1中查找s3，从位置0开始，查找长度为10
	cout << s1.find('l') << endl;  //从s1的第0个位置开始查找字符'l',返回第一个匹配下标：2
	cout << atoi("1243");
	double d = atof("42.3");
	int ff = atoi("423");
	long l = atol("2313455");
	string s = "23.45";
	d = atof(s.c_str());

	int a,b;
	int num[20][2];
	int i=0,j=0;
	//while(cin>>a && cin>>b){////�Է������ַ���ֹͣ�����־
	while(cin>>a && cin>>b){
		//cout<<a<<"  "<<b<<endl;
		num[i][0]=a;
		num[i][1]=b;
		i++;
	}
	for(j=0;j<i;j++){
		//cout<<num[j][0]<<" "<<num[j][1]<<endl;
		bool flag=false;
		for(int nn=num[j][0];nn<=num[j][1];nn++){
			int gewei = nn%10;
			int shiwei=(nn/10)%10;
			int  baiwei = nn/100;
			if(nn==gewei*gewei*gewei+shiwei*shiwei*shiwei+baiwei*baiwei*baiwei){
				flag=true;
				cout<<nn<<" ";
			}
		}
		if(flag==false){
			cout<<"no";
		}
		cout<<endl;
	}
	//system("pause");
	return 0;
}
