class A:
    def __init__(self, txt: str):
        self.t: J = None
        self.p: B = None
        self.z: C = None
        self.y: G = None
        self.txt = txt

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

class C:
    def __init__(self, txt: str):
        self.o: H = None
        self.v: D = None
        self.u: B = None
        self.s: G = None
        self.y: A = None
        self.w: D = None
        self.txt = txt

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

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

class F:
    def __init__(self, txt: str):
        self.r: I = None
        self.x: C = None
        self.s: D = None
        self.txt = txt

class G:
    def __init__(self, txt: str):
        self.o: B = None
        self.w: C = None
        self.x: A = None
        self.q: A = None
        self.p: I = None
        self.txt = txt

class H:
    def __init__(self, txt: str):
        self.r: C = None
        self.q: I = None
        self.s: C = None
        self.y: I = None
        self.p: E = None
        self.t: I = None
        self.u: D = None
        self.w: I = None
        self.txt = txt

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

class J:
    def __init__(self, txt: str):
        self.v: E = None
        self.txt = txt

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

m.t = b
m.p = c
m.z = l
m.y = d
c.y = l
c.x = j
l.o = a
l.v = h
l.w = h
l.u = c
l.s = d
l.y = m
h.v = f
f.o = j
f.z = j
f.p = a
f.y = c
j.r = g
j.x = l
j.s = h
d.o = c
d.w = l
d.x = m
d.q = m
d.p = g
a.r = l
a.s = l
a.q = g
a.y = g
a.t = g
a.w = g
a.p = f
a.u = h
g.w = b
g.x = h
g.y = j
g.v = c
g.o = c
g.t = d
g.r = l
g.u = f
b.v = f
assert d.o.x.x.w.v.txt == "
class A:
    def __init__(self, txt: str):
        self.t: J = None
        self.p: B = None
        self.z: C = None
        self.y: G = None
        self.txt = txt

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

class C:
    def __init__(self, txt: str):
        self.o: H = None
        self.v: D = None
        self.u: B = None
        self.s: G = None
        self.y: A = None
        self.w: D = None
        self.txt = txt

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

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

class F:
    def __init__(self, txt: str):
        self.r: I = None
        self.x: C = None
        self.s: D = None
        self.txt = txt

class G:
    def __init__(self, txt: str):
        self.o: B = None
        self.w: C = None
        self.x: A = None
        self.q: A = None
        self.p: I = None
        self.txt = txt

class H:
    def __init__(self, txt: str):
        self.r: C = None
        self.q: I = None
        self.s: C = None
        self.y: I = None
        self.p: E = None
        self.t: I = None
        self.u: D = None
        self.w: I = None
        self.txt = txt

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

class J:
    def __init__(self, txt: str):
        self.v: E = None
        self.txt = txt

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

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