class A:
    def __init__(self, txt: str):
        self.w: E = None
        self.u: G = None
        self.t: E = None
        self.p: F = None
        self.r: B = None
        self.y: D = None
        self.s: G = None
        self.txt = txt

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

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

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

class E:
    def __init__(self, txt: str):
        self.z: B = None
        self.r: G = None
        self.v: H = None
        self.txt = txt

class F:
    def __init__(self, txt: str):
        self.y: G = None
        self.txt = txt

class G:
    def __init__(self, txt: str):
        self.z: B = None
        self.txt = txt

class H:
    def __init__(self, txt: str):
        self.z: G = None
        self.s: C = None
        self.r: E = None
        self.p: A = None
        self.x: D = None
        self.txt = txt

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

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

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

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

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

class E:
    def __init__(self, txt: str):
        self.z: B = None
        self.r: G = None
        self.v: H = None
        self.txt = txt

class F:
    def __init__(self, txt: str):
        self.y: G = None
        self.txt = txt

class G:
    def __init__(self, txt: str):
        self.z: B = None
        self.txt = txt

class H:
    def __init__(self, txt: str):
        self.z: G = None
        self.s: C = None
        self.r: E = None
        self.p: A = None
        self.x: D = None
        self.txt = txt

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

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