class A:
    def __init__(self, txt: str):
        self.s: D = None
        self.r: G = None
        self.x: E = None
        self.y: H = None
        self.w: F = None
        self.p: E = None
        self.z: H = None
        self.u: H = None
        self.txt = txt

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

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

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

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

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

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

class H:
    def __init__(self, txt: str):
        self.p: C = None
        self.u: E = None
        self.t: I = None
        self.o: A = None
        self.r: E = None
        self.x: F = None
        self.txt = txt

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

h = A("h")
l = B("l")
n = C("n")
c = D("c")
m = E("m")
f = F("f")
e = G("e")
k = H("k")
j = I("j")

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

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

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

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

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

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

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

class H:
    def __init__(self, txt: str):
        self.p: C = None
        self.u: E = None
        self.t: I = None
        self.o: A = None
        self.r: E = None
        self.x: F = None
        self.txt = txt

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

h = A("h")
l = B("l")
n = C("n")
c = D("c")
m = E("m")
f = F("f")
e = G("e")
k = H("k")
j = I("j")

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