class A:
    def __init__(self, txt: str):
        self.z: D = None
        self.o: I = None
        self.v: F = None
        self.p: D = None
        self.x: H = None
        self.txt = txt

class B:
    def __init__(self, txt: str):
        self.x: D = None
        self.o: G = None
        self.u: C = None
        self.z: G = None
        self.txt = txt

class C:
    def __init__(self, txt: str):
        self.q: B = None
        self.txt = txt

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

class E:
    def __init__(self, txt: str):
        self.o: H = None
        self.t: C = None
        self.r: C = None
        self.w: F = None
        self.q: C = None
        self.y: I = None
        self.txt = txt

class F:
    def __init__(self, txt: str):
        self.v: A = None
        self.o: C = None
        self.w: I = None
        self.u: G = None
        self.txt = txt

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

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

class I:
    def __init__(self, txt: str):
        self.t: H = None
        self.x: H = None
        self.txt = txt

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

e = A("e")
g = B("g")
a = C("a")
c = D("c")
m = E("m")
b = F("b")
k = G("k")
h = H("h")
l = I("l")
d = J("d")

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

class B:
    def __init__(self, txt: str):
        self.x: D = None
        self.o: G = None
        self.u: C = None
        self.z: G = None
        self.txt = txt

class C:
    def __init__(self, txt: str):
        self.q: B = None
        self.txt = txt

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

class E:
    def __init__(self, txt: str):
        self.o: H = None
        self.t: C = None
        self.r: C = None
        self.w: F = None
        self.q: C = None
        self.y: I = None
        self.txt = txt

class F:
    def __init__(self, txt: str):
        self.v: A = None
        self.o: C = None
        self.w: I = None
        self.u: G = None
        self.txt = txt

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

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

class I:
    def __init__(self, txt: str):
        self.t: H = None
        self.x: H = None
        self.txt = txt

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

e = A("e")
g = B("g")
a = C("a")
c = D("c")
m = E("m")
b = F("b")
k = G("k")
h = H("h")
l = I("l")
d = J("d")

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