class A:
    def __init__(self, txt: str):
        self.u: D = None
        self.txt = txt

class B:
    def __init__(self, txt: str):
        self.p: I = None
        self.r: J = None
        self.x: G = None
        self.z: H = None
        self.y: G = None
        self.o: J = None
        self.s: A = None
        self.u: D = None
        self.q: G = None
        self.txt = txt

class C:
    def __init__(self, txt: str):
        self.p: E = None
        self.s: F = None
        self.y: B = None
        self.q: H = None
        self.r: H = None
        self.w: E = None
        self.txt = txt

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

class E:
    def __init__(self, txt: str):
        self.x: F = None
        self.u: I = None
        self.o: D = None
        self.w: G = None
        self.s: B = None
        self.p: H = None
        self.txt = txt

class F:
    def __init__(self, txt: str):
        self.s: B = None
        self.q: D = None
        self.v: E = None
        self.r: A = None
        self.y: H = None
        self.u: I = None
        self.txt = txt

class G:
    def __init__(self, txt: str):
        self.y: E = None
        self.t: C = None
        self.p: E = None
        self.q: H = None
        self.o: B = None
        self.s: C = None
        self.txt = txt

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

class I:
    def __init__(self, txt: str):
        self.o: B = None
        self.p: F = None
        self.v: J = None
        self.txt = txt

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

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

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

class B:
    def __init__(self, txt: str):
        self.p: I = None
        self.r: J = None
        self.x: G = None
        self.z: H = None
        self.y: G = None
        self.o: J = None
        self.s: A = None
        self.u: D = None
        self.q: G = None
        self.txt = txt

class C:
    def __init__(self, txt: str):
        self.p: E = None
        self.s: F = None
        self.y: B = None
        self.q: H = None
        self.r: H = None
        self.w: E = None
        self.txt = txt

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

class E:
    def __init__(self, txt: str):
        self.x: F = None
        self.u: I = None
        self.o: D = None
        self.w: G = None
        self.s: B = None
        self.p: H = None
        self.txt = txt

class F:
    def __init__(self, txt: str):
        self.s: B = None
        self.q: D = None
        self.v: E = None
        self.r: A = None
        self.y: H = None
        self.u: I = None
        self.txt = txt

class G:
    def __init__(self, txt: str):
        self.y: E = None
        self.t: C = None
        self.p: E = None
        self.q: H = None
        self.o: B = None
        self.s: C = None
        self.txt = txt

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

class I:
    def __init__(self, txt: str):
        self.o: B = None
        self.p: F = None
        self.v: J = None
        self.txt = txt

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

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

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