class A:
    def __init__(self, txt: str):
        self.w: C = None
        self.o: F = None
        self.z: I = None
        self.u: B = None
        self.x: B = None
        self.txt = txt

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

class C:
    def __init__(self, txt: str):
        self.u: F = None
        self.q: B = None
        self.o: B = None
        self.x: B = None
        self.z: H = None
        self.y: I = None
        self.w: G = None
        self.txt = txt

class D:
    def __init__(self, txt: str):
        self.o: B = None
        self.w: I = None
        self.y: B = None
        self.t: I = None
        self.txt = txt

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

class F:
    def __init__(self, txt: str):
        self.v: D = None
        self.p: A = None
        self.u: D = None
        self.s: J = None
        self.txt = txt

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

class H:
    def __init__(self, txt: str):
        self.q: A = None
        self.txt = txt

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

class J:
    def __init__(self, txt: str):
        self.x: H = None
        self.q: B = None
        self.p: B = None
        self.z: G = None
        self.y: H = None
        self.t: B = None
        self.r: A = None
        self.s: I = None
        self.u: E = None
        self.v: B = None
        self.txt = txt

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

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

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

class C:
    def __init__(self, txt: str):
        self.u: F = None
        self.q: B = None
        self.o: B = None
        self.x: B = None
        self.z: H = None
        self.y: I = None
        self.w: G = None
        self.txt = txt

class D:
    def __init__(self, txt: str):
        self.o: B = None
        self.w: I = None
        self.y: B = None
        self.t: I = None
        self.txt = txt

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

class F:
    def __init__(self, txt: str):
        self.v: D = None
        self.p: A = None
        self.u: D = None
        self.s: J = None
        self.txt = txt

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

class H:
    def __init__(self, txt: str):
        self.q: A = None
        self.txt = txt

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

class J:
    def __init__(self, txt: str):
        self.x: H = None
        self.q: B = None
        self.p: B = None
        self.z: G = None
        self.y: H = None
        self.t: B = None
        self.r: A = None
        self.s: I = None
        self.u: E = None
        self.v: B = None
        self.txt = txt

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

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