172 pencils were to be distributed to students, but the pencils that should have been distributed equally to 4 classes were distributed equally to more classes by mistake, resulting in 28 fewer pencils per class than the amount originally planned to be given. If the pencils are distributed equally and 7 pencils are remaining, find out how many classes the pencils are divided into.
172 7 [OP_SUB] 172 4 [OP_DIV] 28 [OP_SUB] [OP_DIV]
var_a = 172
var_b = 7
var_c = var_a - var_b
var_d = 172
var_e = 4
var_f = var_d / var_e
var_g = 28
var_h = var_f - var_g
var_i = var_c / var_h
print(int(var_i))