class A:
    def __init__(self, txt: str):
        self.p: D = None
        self.x: G = None
        self.t: J = None
        self.z: C = None
        self.v: I = None
        self.q: B = None
        self.o: B = None
        self.u: F = None
        self.txt = txt

class B:
    def __init__(self, txt: str):
        self.s: A = None
        self.txt = txt

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

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

class E:
    def __init__(self, txt: str):
        self.x: B = None
        self.s: J = None
        self.t: C = None
        self.w: A = None
        self.txt = txt

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

class G:
    def __init__(self, txt: str):
        self.w: C = None
        self.z: J = None
        self.x: D = None
        self.r: F = None
        self.t: B = None
        self.q: H = None
        self.u: H = None
        self.v: C = None
        self.p: J = None
        self.txt = txt

class H:
    def __init__(self, txt: str):
        self.u: B = None
        self.txt = txt

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

class J:
    def __init__(self, txt: str):
        self.y: H = None
        self.z: C = None
        self.p: E = None
        self.txt = txt

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

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

class B:
    def __init__(self, txt: str):
        self.s: A = None
        self.txt = txt

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

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

class E:
    def __init__(self, txt: str):
        self.x: B = None
        self.s: J = None
        self.t: C = None
        self.w: A = None
        self.txt = txt

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

class G:
    def __init__(self, txt: str):
        self.w: C = None
        self.z: J = None
        self.x: D = None
        self.r: F = None
        self.t: B = None
        self.q: H = None
        self.u: H = None
        self.v: C = None
        self.p: J = None
        self.txt = txt

class H:
    def __init__(self, txt: str):
        self.u: B = None
        self.txt = txt

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

class J:
    def __init__(self, txt: str):
        self.y: H = None
        self.z: C = None
        self.p: E = None
        self.txt = txt

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

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