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

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

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

class D:
    def __init__(self, txt: str):
        self.r: G = None
        self.t: B = None
        self.o: F = None
        self.s: C = None
        self.q: A = None
        self.w: G = None
        self.txt = txt

class E:
    def __init__(self, txt: str):
        self.o: C = None
        self.z: C = None
        self.u: A = None
        self.s: B = None
        self.txt = txt

class F:
    def __init__(self, txt: str):
        self.s: D = None
        self.x: B = None
        self.p: B = None
        self.u: E = None
        self.txt = txt

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

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

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

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

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

class D:
    def __init__(self, txt: str):
        self.r: G = None
        self.t: B = None
        self.o: F = None
        self.s: C = None
        self.q: A = None
        self.w: G = None
        self.txt = txt

class E:
    def __init__(self, txt: str):
        self.o: C = None
        self.z: C = None
        self.u: A = None
        self.s: B = None
        self.txt = txt

class F:
    def __init__(self, txt: str):
        self.s: D = None
        self.x: B = None
        self.p: B = None
        self.u: E = None
        self.txt = txt

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

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

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