401818: GYM100534 A Abnormal Coins
Description
If you have participated or solved any of the four previous AUT local contests, you may have noticed that first problem of each contest were all about abnormal new students of Amirkabir UT. This time we want to talk about coins in our problem-set but to respect traditions, let's start with abnormal type of coins. Everybody knows what coins are, "A flat, typically round piece of metal with an official stamp, used as money.". But as wikipedia "Not all coins are round. The Australian 50 cent coin, for example, has twelve flat sides. Some coins have wavy edges, e.g. the $2 and 20-cent coins of Hong Kong and the 10 cent coins of Bahamas. Some are square-shaped, such as the 15 cent coin of the Bahamas. During the 1970s, Swazi coins were minted in several shapes, including squares, polygons, and wavy edged circles with 8 and 12 waves." Steve is a great coin collector but he has no polygon shaped coin in his collection. Recently he found another coin lover, Johnny, Who has a collection of polygon coins and fortunately agreed to deal with Steve. The deal is simple, e coins for each poly-coin with e edges. Steve can offer n coin(s) and wants to earn as many poly-coin types as possible to extend his collection. Two poly-coins are different if they differ in number of edges.
InputInput contains a single integer n. (1 ≤ n ≤ 108)
OutputOutput a single integer indicating the maximum number of distinct poly-coins Steve can earn.
ExamplesInput2Output
0Input
3Output
1Input
100000000Output
14139