[root@10-6-8-200 test]# more 4.py
#!/usr/bin/python
for a in range(1, 10):
        for b in range(0, 10):
                for c in range(0, 10):
                        if a*100+b*10+c == a**3+b**3+c**3:
                                print a*100+b*10+c
[root@10-6-8-200 test]# ./4.py
153
370
371
407