s='123' if s.isdecimal(): print(2*int(s)) # Résultat : 246