eolymp
bolt
Try our new interface for solving problems
Problems

Delete digits

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$. \InputFile One positive integer $n~(1 \le n \le 10^{18})$. \OutputFile 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