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

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

class C:
    def __init__(self, txt: str):
        self.u: E = None
        self.q: F = None
        self.y: A = None
        self.txt = txt

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

class E:
    def __init__(self, txt: str):
        self.v: F = None
        self.z: B = None
        self.o: F = None
        self.u: H = None
        self.txt = txt

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

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

class H:
    def __init__(self, txt: str):
        self.v: G = None
        self.z: F = None
        self.r: I = None
        self.txt = txt

class I:
    def __init__(self, txt: str):
        self.z: D = None
        self.q: J = None
        self.w: E = None
        self.o: E = None
        self.r: F = None
        self.y: D = None
        self.v: C = None
        self.x: B = None
        self.t: F = None
        self.txt = txt

class J:
    def __init__(self, txt: str):
        self.o: C = None
        self.txt = txt

i = A("i")
n = B("n")
j = C("j")
h = D("h")
a = E("a")
f = F("f")
c = G("c")
b = H("b")
e = I("e")
l = J("l")

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

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

class C:
    def __init__(self, txt: str):
        self.u: E = None
        self.q: F = None
        self.y: A = None
        self.txt = txt

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

class E:
    def __init__(self, txt: str):
        self.v: F = None
        self.z: B = None
        self.o: F = None
        self.u: H = None
        self.txt = txt

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

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

class H:
    def __init__(self, txt: str):
        self.v: G = None
        self.z: F = None
        self.r: I = None
        self.txt = txt

class I:
    def __init__(self, txt: str):
        self.z: D = None
        self.q: J = None
        self.w: E = None
        self.o: E = None
        self.r: F = None
        self.y: D = None
        self.v: C = None
        self.x: B = None
        self.t: F = None
        self.txt = txt

class J:
    def __init__(self, txt: str):
        self.o: C = None
        self.txt = txt

i = A("i")
n = B("n")
j = C("j")
h = D("h")
a = E("a")
f = F("f")
c = G("c")
b = H("b")
e = I("e")
l = J("l")

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