class Book:
def __init__ ( self , title, pages= 50 ) :
self .title = title
self .pages = pages
class EBook:
def __init__ ( self , title, pages= 50 ) :
self .title = title
self .pages = pages
def leaf_over( book : Book) :
for page in range ( 1 , book.pages +1 ) :
print ( book.title , "Page:" , page)
B = Book( "Balkan" , 10 )
E = EBook( "Expert" , 3 )
leaf_over( B)
leaf_over( E)
Y2xhc3MgQm9vazoKICAgIGRlZiBfX2luaXRfXyhzZWxmLCB0aXRsZSwgcGFnZXM9NTApOgogICAgICAgIHNlbGYudGl0bGUgPSB0aXRsZQogICAgICAgIHNlbGYucGFnZXMgPSBwYWdlcwoKY2xhc3MgRUJvb2s6CiAgICBkZWYgX19pbml0X18oc2VsZiwgdGl0bGUsIHBhZ2VzPTUwKToKICAgICAgICBzZWxmLnRpdGxlID0gdGl0bGUKICAgICAgICBzZWxmLnBhZ2VzID0gcGFnZXMKCmRlZiBsZWFmX292ZXIoYm9vayA6IEJvb2spOgogICAgZm9yIHBhZ2UgaW4gcmFuZ2UoMSwgYm9vay5wYWdlcysxKToKICAgICAgICBwcmludChib29rLnRpdGxlLCAiUGFnZToiLCBwYWdlKQoKQiA9IEJvb2soIkJhbGthbiIsIDEwKQpFID0gRUJvb2soIkV4cGVydCIsIDMpCgpsZWFmX292ZXIoQikKbGVhZl9vdmVyKEUp