#!/bin/python import sys def howManyGames(p, d, m, s): count=0 while s >=m: if p<=s and p >=m: s = s -p p = p - d count+=1 elif p<=s and p