#!/usr/bin/python

# Round, copyright (c) 2013, 2018 Nick Montfort <nickm@nickm.com>
#
# Copying and distribution of this file, with or without modification, are
# permitted in any medium without royalty provided the copyright notice and
# this notice are preserved. This file is offered as-is, without any warranty.
#
# Updated 31 May 2018, changed "print" and "long" for Python 2 & 3 compatibility
# Updated 26 November 2018, substituted a shorter all-permissive license

import sys

if sys.version_info > (3,):
    long = int

def compute_pi():
    q, r, t, k, m, x = long(1), long(0), long(1), long(1), long(3), long(3)
    while True:
        if 4 * q + r - t < m * t:
            yield m
            q,r,t,k,m,x = 10*q,10*(r-m*t),t,k,(10*(3*q+r))//t-10*m,x
        else:
            q,r,t,k,m,x = q*k,(2*q+r)*x,t*x,k+1,(q*(7*k+2)+r*x)//(t*x),x+2
word = ['\n', 'in', 'crease ', 'form ', 'tends ', 'tense ', 'to ', 'tone ',
        'vent ', 'verse ']
line = ''
pi = compute_pi()
print('')

while True:
    digit = next(pi)
    line = line + word[digit]
    if digit == 0:
        print(line)
        line = ''
