fork download
  1. g=int(input())
  2. f=int(input())
  3. counter=0
  4. while g>6:
  5. g-=f
  6. counter+=1
  7. if (counter*7)+6==1000:
  8. print("True")
  9. print(counter)
  10. print(g)
  11. print( (counter*f)+6 , '-','7' '?')
  12. else:
  13. print("False")
  14. print(counter)
  15. print(g)
  16. print(counter*f)
Success #stdin #stdout 0.02s 9132KB
stdin
1000
7
stdout
True
142
6
1000 - 7?