numero = int(input('Ingrese un número entero: '))
if (numero % 3 == 0) and (numero % 5 == 0):
print('¡Número mágico!')
elif numero % 3 == 0:
print('Divisible por 3')
elif numero % 5 == 0:
print('Divisible por 5')
else:
print('No es un número mágico')