class A:
    def __init__(self, txt: str):
        self.r: E = None
        self.y: H = None
        self.w: F = None
        self.txt = txt

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

class C:
    def __init__(self, txt: str):
        self.t: F = None
        self.txt = txt

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

class E:
    def __init__(self, txt: str):
        self.r: D = None
        self.v: I = None
        self.txt = txt

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

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

class H:
    def __init__(self, txt: str):
        self.t: E = None
        self.x: I = None
        self.txt = txt

class I:
    def __init__(self, txt: str):
        self.u: G = None
        self.s: C = None
        self.q: F = None
        self.w: H = None
        self.txt = txt

class J:
    def __init__(self, txt: str):
        self.t: B = None
        self.x: D = None
        self.r: F = None
        self.u: E = None
        self.txt = txt

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

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

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

class C:
    def __init__(self, txt: str):
        self.t: F = None
        self.txt = txt

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

class E:
    def __init__(self, txt: str):
        self.r: D = None
        self.v: I = None
        self.txt = txt

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

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

class H:
    def __init__(self, txt: str):
        self.t: E = None
        self.x: I = None
        self.txt = txt

class I:
    def __init__(self, txt: str):
        self.u: G = None
        self.s: C = None
        self.q: F = None
        self.w: H = None
        self.txt = txt

class J:
    def __init__(self, txt: str):
        self.t: B = None
        self.x: D = None
        self.r: F = None
        self.u: E = None
        self.txt = txt

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

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