human
Convert A into B by incrementing or decrementing 1 , 2 , or 5 any number of times | Function to find minimum number of moves required to convert A into B.
Stores the minimum number of moves required.
Stores the absolute difference.
FInd the number of moves.
Return cnt.
Input.
Function call"
How can the above be solved in Python?
 ... Give me a code to convert A into B by incrementing or decrementing 1 , 2 , or 5 any number of times and the other steps required?
assistant
#Here is code to convert A into B by incrementing or decrementing 1 , 2 , or 5 any number of times and the other steps required.
 def minimumSteps ( a , b ) :
	cnt = 0
	a = abs ( a - b )
	cnt = ( a // 5 ) + ( a % 5 ) // 2 + ( a % 5 ) % 2
	return cnt
A = 3
B = 9
print ( minimumSteps ( A , B ) )