class A:
    def __init__(self, txt: str):
        self.y: H = None
        self.w: E = None
        self.o: C = None
        self.x: H = None
        self.s: D = None
        self.txt = txt

class B:
    def __init__(self, txt: str):
        self.z: D = None
        self.x: A = None
        self.o: C = None
        self.q: E = None
        self.txt = txt

class C:
    def __init__(self, txt: str):
        self.x: A = None
        self.y: G = None
        self.u: G = None
        self.z: D = None
        self.r: B = None
        self.txt = txt

class D:
    def __init__(self, txt: str):
        self.o: A = None
        self.u: C = None
        self.txt = txt

class E:
    def __init__(self, txt: str):
        self.r: F = None
        self.p: H = None
        self.z: B = None
        self.w: C = None
        self.v: C = None
        self.o: D = None
        self.txt = txt

class F:
    def __init__(self, txt: str):
        self.q: C = None
        self.s: B = None
        self.z: D = None
        self.p: A = None
        self.txt = txt

class G:
    def __init__(self, txt: str):
        self.s: E = None
        self.q: C = None
        self.t: C = None
        self.u: A = None
        self.w: B = None
        self.z: F = None
        self.x: C = None
        self.r: H = None
        self.txt = txt

class H:
    def __init__(self, txt: str):
        self.w: F = None
        self.txt = txt

e = A("e")
b = B("b")
l = C("l")
k = D("k")
j = E("j")
g = F("g")
c = G("c")
i = H("i")

e.y = i
e.x = i
e.w = j
e.o = l
e.s = k
b.z = k
b.x = e
b.o = l
b.q = j
l.x = e
l.y = c
l.u = c
l.z = k
l.r = b
k.o = e
k.u = l
j.r = g
j.p = i
j.z = b
j.w = l
j.v = l
j.o = k
g.q = l
g.s = b
g.z = k
g.p = e
c.s = j
c.q = l
c.t = l
c.x = l
c.u = e
c.w = b
c.z = g
c.r = i
i.w = g
assert i.w.q.x.w.o.u.r.o.txt == "
class A:
    def __init__(self, txt: str):
        self.y: H = None
        self.w: E = None
        self.o: C = None
        self.x: H = None
        self.s: D = None
        self.txt = txt

class B:
    def __init__(self, txt: str):
        self.z: D = None
        self.x: A = None
        self.o: C = None
        self.q: E = None
        self.txt = txt

class C:
    def __init__(self, txt: str):
        self.x: A = None
        self.y: G = None
        self.u: G = None
        self.z: D = None
        self.r: B = None
        self.txt = txt

class D:
    def __init__(self, txt: str):
        self.o: A = None
        self.u: C = None
        self.txt = txt

class E:
    def __init__(self, txt: str):
        self.r: F = None
        self.p: H = None
        self.z: B = None
        self.w: C = None
        self.v: C = None
        self.o: D = None
        self.txt = txt

class F:
    def __init__(self, txt: str):
        self.q: C = None
        self.s: B = None
        self.z: D = None
        self.p: A = None
        self.txt = txt

class G:
    def __init__(self, txt: str):
        self.s: E = None
        self.q: C = None
        self.t: C = None
        self.u: A = None
        self.w: B = None
        self.z: F = None
        self.x: C = None
        self.r: H = None
        self.txt = txt

class H:
    def __init__(self, txt: str):
        self.w: F = None
        self.txt = txt

e = A("e")
b = B("b")
l = C("l")
k = D("k")
j = E("j")
g = F("g")
c = G("c")
i = H("i")

e.y = i
e.x = i
e.w = j
e.o = l
e.s = k
b.z = k
b.x = e
b.o = l
b.q = j
l.x = e
l.y = c
l.u = c
l.z = k
l.r = b
k.o = e
k.u = l
j.r = g
j.p = i
j.z = b
j.w = l
j.v = l
j.o = k
g.q = l
g.s = b
g.z = k
g.p = e
c.s = j
c.q = l
c.t = l
c.x = l
c.u = e
c.w = b
c.z = g
c.r = i
i.w = g
assert i.w.q.x.w.o.u.r.o.txt == "l"