e-olymp
favorite We need a little bit of your help to keep things running, click on this banner to learn more
Competitions

PP2. Week 4: March 29 - April 4

Delete digits

One positive integer n is given. Remove from this number all digits 3 and 9, leaving the order of other digits the same.

For example, the number 539013 will be transformed to 501.

Input

One positive integer n (1n1018).

Output

Remove from the number n all digits 3 and 9, keeping the relative order of other digits.

Time limit 1 second
Memory limit 128 MiB
Input example #1
539013 
Output example #1
501