cho.sh
Notes
Loading...

Binary to Octal Conversion

Time limit

1s

Memory limit

128 MB

Problem

Given a number written in binary, write a program that converts it to octal.

Input

The first line contains one binary number. Its length is between 1 and 1,000,000, inclusive.

Output

Print the octal representation of the given binary number on the first line.