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

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

class C:
    def __init__(self, txt: str):
        self.q: B = None
        self.x: A = None
        self.r: I = None
        self.u: E = None
        self.p: B = None
        self.y: E = None
        self.v: E = None
        self.txt = txt

class D:
    def __init__(self, txt: str):
        self.t: J = None
        self.u: I = None
        self.p: J = None
        self.y: B = None
        self.z: E = None
        self.txt = txt

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

class F:
    def __init__(self, txt: str):
        self.o: A = None
        self.r: G = None
        self.t: E = None
        self.z: D = None
        self.x: G = None
        self.txt = txt

class G:
    def __init__(self, txt: str):
        self.u: C = None
        self.v: E = None
        self.txt = txt

class H:
    def __init__(self, txt: str):
        self.p: B = None
        self.t: G = None
        self.u: C = None
        self.s: A = None
        self.v: B = None
        self.txt = txt

class I:
    def __init__(self, txt: str):
        self.z: J = None
        self.r: J = None
        self.p: B = None
        self.q: B = None
        self.txt = txt

class J:
    def __init__(self, txt: str):
        self.w: B = None
        self.u: I = None
        self.txt = txt

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

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

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

class C:
    def __init__(self, txt: str):
        self.q: B = None
        self.x: A = None
        self.r: I = None
        self.u: E = None
        self.p: B = None
        self.y: E = None
        self.v: E = None
        self.txt = txt

class D:
    def __init__(self, txt: str):
        self.t: J = None
        self.u: I = None
        self.p: J = None
        self.y: B = None
        self.z: E = None
        self.txt = txt

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

class F:
    def __init__(self, txt: str):
        self.o: A = None
        self.r: G = None
        self.t: E = None
        self.z: D = None
        self.x: G = None
        self.txt = txt

class G:
    def __init__(self, txt: str):
        self.u: C = None
        self.v: E = None
        self.txt = txt

class H:
    def __init__(self, txt: str):
        self.p: B = None
        self.t: G = None
        self.u: C = None
        self.s: A = None
        self.v: B = None
        self.txt = txt

class I:
    def __init__(self, txt: str):
        self.z: J = None
        self.r: J = None
        self.p: B = None
        self.q: B = None
        self.txt = txt

class J:
    def __init__(self, txt: str):
        self.w: B = None
        self.u: I = None
        self.txt = txt

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

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