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

class B:
    def __init__(self, txt: str):
        self.u: A = None
        self.o: A = None
        self.p: H = None
        self.t: E = None
        self.txt = txt

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

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

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

class F:
    def __init__(self, txt: str):
        self.p: E = None
        self.z: B = None
        self.x: E = None
        self.y: D = None
        self.r: D = None
        self.v: G = None
        self.u: D = None
        self.txt = txt

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

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

l = A("l")
n = B("n")
g = C("g")
a = D("a")
m = E("m")
c = F("c")
h = G("h")
j = H("j")

l.s = g
l.z = g
l.u = n
l.v = j
l.w = a
l.t = a
l.r = c
l.x = h
n.u = l
n.o = l
n.p = j
n.t = m
g.z = c
g.t = h
a.q = l
a.v = m
m.o = a
m.q = a
m.x = h
m.v = l
m.y = l
m.s = j
m.w = c
m.u = n
c.p = m
c.x = m
c.z = n
c.y = a
c.r = a
c.u = a
c.v = h
h.x = c
j.y = n
j.v = n
assert l.r.p.s.v.t.s.txt == "
class A:
    def __init__(self, txt: str):
        self.s: C = None
        self.u: B = None
        self.v: H = None
        self.w: D = None
        self.t: D = None
        self.r: F = None
        self.x: G = None
        self.z: C = None
        self.txt = txt

class B:
    def __init__(self, txt: str):
        self.u: A = None
        self.o: A = None
        self.p: H = None
        self.t: E = None
        self.txt = txt

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

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

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

class F:
    def __init__(self, txt: str):
        self.p: E = None
        self.z: B = None
        self.x: E = None
        self.y: D = None
        self.r: D = None
        self.v: G = None
        self.u: D = None
        self.txt = txt

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

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

l = A("l")
n = B("n")
g = C("g")
a = D("a")
m = E("m")
c = F("c")
h = G("h")
j = H("j")

l.s = g
l.z = g
l.u = n
l.v = j
l.w = a
l.t = a
l.r = c
l.x = h
n.u = l
n.o = l
n.p = j
n.t = m
g.z = c
g.t = h
a.q = l
a.v = m
m.o = a
m.q = a
m.x = h
m.v = l
m.y = l
m.s = j
m.w = c
m.u = n
c.p = m
c.x = m
c.z = n
c.y = a
c.r = a
c.u = a
c.v = h
h.x = c
j.y = n
j.v = n
assert l.r.p.s.v.t.s.txt == "j"