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

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

class C:
    def __init__(self, txt: str):
        self.v: H = None
        self.q: D = None
        self.w: E = None
        self.z: D = None
        self.txt = txt

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

class E:
    def __init__(self, txt: str):
        self.o: I = None
        self.txt = txt

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

class G:
    def __init__(self, txt: str):
        self.u: C = None
        self.w: A = None
        self.s: I = None
        self.x: I = None
        self.txt = txt

class H:
    def __init__(self, txt: str):
        self.z: G = None
        self.s: D = None
        self.txt = txt

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

class J:
    def __init__(self, txt: str):
        self.v: E = None
        self.r: B = None
        self.z: G = None
        self.t: H = None
        self.txt = txt

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

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

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

class C:
    def __init__(self, txt: str):
        self.v: H = None
        self.q: D = None
        self.w: E = None
        self.z: D = None
        self.txt = txt

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

class E:
    def __init__(self, txt: str):
        self.o: I = None
        self.txt = txt

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

class G:
    def __init__(self, txt: str):
        self.u: C = None
        self.w: A = None
        self.s: I = None
        self.x: I = None
        self.txt = txt

class H:
    def __init__(self, txt: str):
        self.z: G = None
        self.s: D = None
        self.txt = txt

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

class J:
    def __init__(self, txt: str):
        self.v: E = None
        self.r: B = None
        self.z: G = None
        self.t: H = None
        self.txt = txt

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

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