print "This is a program that converts a base 10 number to any base less than base 10, up to 4 places."
x = input ("Enter the number in base 10: ")
y = input ("Enter the base you wish to convert to: ")
b = y*y*y
c = y*y
d = y
e = 1

cubed = x/b
squared = x%b/c
base = ((x%b)%c)/d
ones = (((x%b)%c)%d)

print "Here it is in base " + str(y) + ": " + str(cubed) + str(squared) + str(base) + str(ones)

