Oha

아직 제출이 없습니다시간 제한2초메모리 제한256 MB

문제

You're going to launch a new online game that everybody will want to play. However, your servers are not ready to handle so many players. More precisely, your servers can handle nn players. Of course, you want as many players as possible, as that gives you as much income as possible. In other words, your goal is to have exactly nn players.

Acknowledging the state of your servers publicly would mean bad PR for your company. So you've decided the limit the number of players in a different way: by limiting their choice for usernames in such a way that there are exactly nn valid usernames.

The allowed usernames are strings that:

  • Have length exactly kk.
  • Consist only of letters A and B.
  • Do not contain any string from the forbidden substring list s_1,s_2,,s_ms\_1, s\_2, \dots, s\_m as a substring.

You need to choose kk, mm, and the strings s_1,s_2,,s_ms\_1, s\_2, \dots, s\_m in such a way that there exist exactly nn valid usernames. See the output format for the restrictions on the values you choose.

입력

The only line of the input file contains one integer nn, 1n1091 \le n \le 10^9.

출력

On the first line of the output file, print two integers kk and mm: the length of the usernames, and the number of forbidden substrings. On the next mm lines print the forbidden substrings.

  • 1k601 \le k \le 60.
  • 0m1000 \le m \le 100.
  • Each forbidden substring s_is\_i has length between 1 and kk, and consists only of letters A and B.
  • There exist exactly nn valid usernames for the values you output.

It is guaranteed that a solution will always exist. You may output any valid solution. Forbidden substrings may coincide or be substrings of one another.