#A0157. 开三方

开三方

Title Description

Given a positive integer nn , find the positive integer l,rl, r such that ln3<rl\le \sqrt[3]{n}\lt r.

In other words, you need to ensure l3nl^3\le n and n<r3n\lt r^3.

Input format

The first line is a positive integer nn.

Output format

Two positive integers l,rl, r in a row.

twenty-seven
3 4
three hundred
6 7

Example explanation

  • 33=273 ^ 3=27 , 43=644 ^ 3=64
  • 63=2166 ^ 3=216 , 73=3437 ^ 3=343

Data scale and agreement

For data of 100%100 \% , 1n10181 \le n\le10^{18} .

  • Subtask 1 (30 points): n le9n \ le 9 .
  • Subtask 2 (30 points): n le109n \ le 10 ^ 9 .
  • Subtask 3 (40 points): No special restrictions.