Update main.py

Fix a little bug for python 2.7.
'string' * float(x) seem to work with python 3.x, but it doesn't with 2.7 (not at my system at least).
So i added some int() s.