class A:
    def __init__(self, txt: str):
        self.v: E = None
        self.p: H = None
        self.o: I = None
        self.z: C = None
        self.y: I = None
        self.t: G = None
        self.txt = txt

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

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

class D:
    def __init__(self, txt: str):
        self.t: G = None
        self.p: I = None
        self.r: H = None
        self.z: F = None
        self.w: B = None
        self.txt = txt

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

class F:
    def __init__(self, txt: str):
        self.p: I = None
        self.w: C = None
        self.z: B = None
        self.y: I = None
        self.s: B = None
        self.v: B = None
        self.txt = txt

class G:
    def __init__(self, txt: str):
        self.p: B = None
        self.txt = txt

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

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

h = A("h")
a = B("a")
i = C("i")
n = D("n")
j = E("j")
l = F("l")
m = G("m")
b = H("b")
e = I("e")

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

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

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

class D:
    def __init__(self, txt: str):
        self.t: G = None
        self.p: I = None
        self.r: H = None
        self.z: F = None
        self.w: B = None
        self.txt = txt

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

class F:
    def __init__(self, txt: str):
        self.p: I = None
        self.w: C = None
        self.z: B = None
        self.y: I = None
        self.s: B = None
        self.v: B = None
        self.txt = txt

class G:
    def __init__(self, txt: str):
        self.p: B = None
        self.txt = txt

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

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

h = A("h")
a = B("a")
i = C("i")
n = D("n")
j = E("j")
l = F("l")
m = G("m")
b = H("b")
e = I("e")

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