e-olymp
Competitions

Week 6: December 14 - 20. Char arrays 1

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