import java.util.*;
import java.lang.*;
import java.io.*;
class Ideone
{
{
Scanner in
= new Scanner
(System.
in); char si;
for (int i=0; i<str.length(); i++){
si=str.charAt(i);
if ((si>='a'&&si<='z')||(si>='A'&&si<='Z')){
str.deleteCharAt(i); i--;
}
}
}
}
aW1wb3J0IGphdmEudXRpbC4qOwppbXBvcnQgamF2YS5sYW5nLio7CmltcG9ydCBqYXZhLmlvLio7CgpjbGFzcyBJZGVvbmUKewoJcHVibGljIHN0YXRpYyB2b2lkIG1haW4gKFN0cmluZ1tdIGFyZ3MpIHRocm93cyBqYXZhLmxhbmcuRXhjZXB0aW9uCgl7CgkJU2Nhbm5lciBpbiA9IG5ldyBTY2FubmVyKFN5c3RlbS5pbik7CgkJU3RyaW5nIHNpbiA9IGluLm5leHRMaW5lKCk7CgkJU3RyaW5nQnVmZmVyIHN0ciA9IG5ldyBTdHJpbmdCdWZmZXIoc2luKTsKCQljaGFyIHNpOwoJCWZvciAoaW50IGk9MDsgaTxzdHIubGVuZ3RoKCk7IGkrKyl7CgkJCXNpPXN0ci5jaGFyQXQoaSk7CgkJICAgIGlmICgoc2k+PSdhJyYmc2k8PSd6Jyl8fChzaT49J0EnJiZzaTw9J1onKSl7CgkJICAgICAgICBzdHIuZGVsZXRlQ2hhckF0KGkpOyBpLS07CgkJICAgIH0KCQl9CgkJU3lzdGVtLm91dC5wcmludGYoIiVzIixzdHIpOwoJfQp9