Integer23. N seconds have passed since the beginning of the day (N is an integer). Find the number of complete minutes that have passed since the last hour.

Solution in Python 3:

import random

N = random.randrange(0,86400)
N = 3660
print("Number of seconds: ", N)
m = int(N/60)
print("Number of complete minutes: ", m)
m = m%60
print("Minutes since the last hour: ", m)