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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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