all modern mobile application divide free pay even single application developer release version pay version ad free version ad suppose pay version app cost p p integer ruble free version application contain c ad banner each user describe integer ai number ruble user willing pay pay version application bi number banner willing tolerate free versionthe behavior member shall consider strictly deterministic user value bi c use free version value ai p buy pay version advertising user simply use application each user free version bring profit cw ruble each user pay version bring profit p rublesyour task help application developer select optimal parameter p c namely know characteristic user value c 0 maxbi1 need determine maximum profit application corresponding parameter p