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

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

class C:
    def __init__(self, txt: str):
        self.r: D = None
        self.p: A = None
        self.q: F = None
        self.z: E = None
        self.s: D = None
        self.txt = txt

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

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

class F:
    def __init__(self, txt: str):
        self.u: A = None
        self.p: I = None
        self.y: J = None
        self.txt = txt

class G:
    def __init__(self, txt: str):
        self.r: F = None
        self.w: B = None
        self.txt = txt

class H:
    def __init__(self, txt: str):
        self.p: C = None
        self.q: C = None
        self.s: E = None
        self.w: G = None
        self.z: A = None
        self.o: F = None
        self.txt = txt

class I:
    def __init__(self, txt: str):
        self.y: H = None
        self.o: D = None
        self.w: H = None
        self.r: G = None
        self.x: H = None
        self.txt = txt

class J:
    def __init__(self, txt: str):
        self.p: I = None
        self.o: H = None
        self.z: E = None
        self.v: I = None
        self.t: B = None
        self.x: A = None
        self.r: D = None
        self.txt = txt

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

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

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

class C:
    def __init__(self, txt: str):
        self.r: D = None
        self.p: A = None
        self.q: F = None
        self.z: E = None
        self.s: D = None
        self.txt = txt

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

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

class F:
    def __init__(self, txt: str):
        self.u: A = None
        self.p: I = None
        self.y: J = None
        self.txt = txt

class G:
    def __init__(self, txt: str):
        self.r: F = None
        self.w: B = None
        self.txt = txt

class H:
    def __init__(self, txt: str):
        self.p: C = None
        self.q: C = None
        self.s: E = None
        self.w: G = None
        self.z: A = None
        self.o: F = None
        self.txt = txt

class I:
    def __init__(self, txt: str):
        self.y: H = None
        self.o: D = None
        self.w: H = None
        self.r: G = None
        self.x: H = None
        self.txt = txt

class J:
    def __init__(self, txt: str):
        self.p: I = None
        self.o: H = None
        self.z: E = None
        self.v: I = None
        self.t: B = None
        self.x: A = None
        self.r: D = None
        self.txt = txt

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

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