def numberFour(n)
if n - 4 != 0
if n % 10 == 0
numberFour(n/10)
end
if n % 10 == 4
numberFour(n/10)
else
numberFour(n*2)
end
print "---->%d"%[n]
end
end
n = 3
print "%d"%[4]
numberFour(n)
CmRlZiBudW1iZXJGb3VyKG4pCgkKCWlmIG4gLSA0ICE9IDAKCSAgICBpZiBuICUgMTAgPT0gMAoJICAgIAludW1iZXJGb3VyKG4vMTApCgkgICAgZW5kCQoJICAgIGlmIG4gJSAxMCA9PSA0CgkgICAgCW51bWJlckZvdXIobi8xMCkKCSAgICBlbHNlCgkgICAgCW51bWJlckZvdXIobioyKQoJICAgIGVuZAkKCSAgICBwcmludCAiLS0tLT4lZCIlW25dCgllbmQJCgkJCQplbmQJCm4gPSAzCnByaW50ICIlZCIlWzRdCm51bWJlckZvdXIobik=