3rd Balkan Olympiad in Informatics
Varna, Bulgaria, 5-11 October 1995


Day 1 - Problem 2 (Large numbers)



The positive integer number n is represented by k (40 <=k <= 80) digits in decimal system, and is called large number. The problem is to write a program that, for a given large number n determines the greatest integer such that p3+p2+3p<=n.