class A:
    def __init__(self, txt: str):
        self.w: G = None
        self.txt = txt

class B:
    def __init__(self, txt: str):
        self.o: H = None
        self.txt = txt

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

class D:
    def __init__(self, txt: str):
        self.r: A = None
        self.w: F = None
        self.x: A = None
        self.o: A = None
        self.q: A = None
        self.txt = txt

class E:
    def __init__(self, txt: str):
        self.y: H = None
        self.txt = txt

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

class G:
    def __init__(self, txt: str):
        self.v: A = None
        self.q: B = None
        self.p: B = None
        self.txt = txt

class H:
    def __init__(self, txt: str):
        self.u: C = None
        self.txt = txt

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

b.w = d
l.o = k
h.o = j
h.x = j
h.q = l
h.r = c
h.z = c
h.v = k
h.p = k
e.r = b
e.x = b
e.o = b
e.q = b
e.w = c
g.y = k
c.t = b
c.y = h
c.u = k
c.s = k
c.x = k
c.r = g
c.v = j
c.w = j
a.v = b
a.q = l
a.p = l
k.u = j
d.v = b
d.q = l
d.p = l
j.o = h
j.x = h
j.q = l
j.r = c
j.z = c
j.v = k
j.p = k
assert b.w.q.o.u.o.r.r.txt == "
class A:
    def __init__(self, txt: str):
        self.w: G = None
        self.txt = txt

class B:
    def __init__(self, txt: str):
        self.o: H = None
        self.txt = txt

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

class D:
    def __init__(self, txt: str):
        self.r: A = None
        self.w: F = None
        self.x: A = None
        self.o: A = None
        self.q: A = None
        self.txt = txt

class E:
    def __init__(self, txt: str):
        self.y: H = None
        self.txt = txt

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

class G:
    def __init__(self, txt: str):
        self.v: A = None
        self.q: B = None
        self.p: B = None
        self.txt = txt

class H:
    def __init__(self, txt: str):
        self.u: C = None
        self.txt = txt

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

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