One man has decided to create an open database of software on his computer, counting that this database will take less then N TB of memory. But, since it will be in the public domain, he should provide reliable data storage.
Task. Determine how much 1 TB hard drives is enough for the organization of secure storage of N TB of data, provided that the drives can fail, but only one hard drive can fail at the same time, and there is always known which hard disk is broken.
Streams. Input stream contains one positive integer N. Output stream should contain one positive integer.
ExampleInput stream:1Output stream:2