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

class B:
    def __init__(self, txt: str):
        self.t: D = None
        self.v: E = None
        self.p: G = None
        self.s: A = None
        self.x: E = None
        self.o: G = None
        self.y: C = None
        self.z: C = None
        self.txt = txt

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

class D:
    def __init__(self, txt: str):
        self.r: H = None
        self.t: H = None
        self.z: B = None
        self.q: G = None
        self.p: H = None
        self.u: E = None
        self.v: E = None
        self.y: E = None
        self.txt = txt

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

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

class G:
    def __init__(self, txt: str):
        self.x: H = None
        self.z: H = None
        self.t: C = None
        self.w: F = None
        self.txt = txt

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

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

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

class B:
    def __init__(self, txt: str):
        self.t: D = None
        self.v: E = None
        self.p: G = None
        self.s: A = None
        self.x: E = None
        self.o: G = None
        self.y: C = None
        self.z: C = None
        self.txt = txt

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

class D:
    def __init__(self, txt: str):
        self.r: H = None
        self.t: H = None
        self.z: B = None
        self.q: G = None
        self.p: H = None
        self.u: E = None
        self.v: E = None
        self.y: E = None
        self.txt = txt

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

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

class G:
    def __init__(self, txt: str):
        self.x: H = None
        self.z: H = None
        self.t: C = None
        self.w: F = None
        self.txt = txt

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

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

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