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

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

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

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

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

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

class G:
    def __init__(self, txt: str):
        self.w: H = None
        self.txt = txt

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

j = A("j")
f = B("f")
l = C("l")
k = D("k")
c = E("c")
h = F("h")
m = G("m")
g = H("g")
i = E("i")

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

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

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

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

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

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

class G:
    def __init__(self, txt: str):
        self.w: H = None
        self.txt = txt

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

j = A("j")
f = B("f")
l = C("l")
k = D("k")
c = E("c")
h = F("h")
m = G("m")
g = H("g")
i = E("i")

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