class A:
    def __init__(self, txt: str):
        self.t: E = None
        self.x: H = None
        self.o: H = None
        self.r: F = None
        self.p: B = None
        self.v: H = None
        self.txt = txt

class B:
    def __init__(self, txt: str):
        self.x: C = None
        self.u: E = None
        self.t: D = None
        self.y: F = None
        self.v: A = None
        self.r: F = None
        self.q: D = None
        self.txt = txt

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

class D:
    def __init__(self, txt: str):
        self.x: F = None
        self.s: F = None
        self.q: F = None
        self.u: C = None
        self.txt = txt

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

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

class G:
    def __init__(self, txt: str):
        self.z: E = None
        self.t: C = None
        self.q: D = None
        self.txt = txt

class H:
    def __init__(self, txt: str):
        self.p: B = None
        self.s: E = None
        self.t: F = None
        self.u: A = None
        self.w: C = None
        self.o: C = None
        self.y: C = None
        self.txt = txt

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

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

class B:
    def __init__(self, txt: str):
        self.x: C = None
        self.u: E = None
        self.t: D = None
        self.y: F = None
        self.v: A = None
        self.r: F = None
        self.q: D = None
        self.txt = txt

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

class D:
    def __init__(self, txt: str):
        self.x: F = None
        self.s: F = None
        self.q: F = None
        self.u: C = None
        self.txt = txt

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

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

class G:
    def __init__(self, txt: str):
        self.z: E = None
        self.t: C = None
        self.q: D = None
        self.txt = txt

class H:
    def __init__(self, txt: str):
        self.p: B = None
        self.s: E = None
        self.t: F = None
        self.u: A = None
        self.w: C = None
        self.o: C = None
        self.y: C = None
        self.txt = txt

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

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