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

class B:
    def __init__(self, txt: str):
        self.w: G = None
        self.v: D = None
        self.p: E = None
        self.t: F = None
        self.txt = txt

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

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

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

class F:
    def __init__(self, txt: str):
        self.s: A = None
        self.p: D = None
        self.r: A = None
        self.o: D = None
        self.u: D = None
        self.x: B = None
        self.z: D = None
        self.txt = txt

class G:
    def __init__(self, txt: str):
        self.v: E = None
        self.txt = txt

h = A("h")
i = B("i")
f = C("f")
a = D("a")
e = E("e")
d = F("d")
l = G("l")
c = F("c")
j = C("j")
n = E("n")

h.p = e
h.y = l
h.u = l
h.r = i
h.z = j
h.v = c
i.w = l
i.v = a
i.p = n
i.t = d
f.x = l
f.o = c
f.w = i
f.z = e
a.x = n
a.u = h
a.o = h
a.w = f
e.r = a
d.s = h
d.r = h
d.p = a
d.o = a
d.u = a
d.z = a
d.x = i
l.v = n
c.s = h
c.r = h
c.p = a
c.o = a
c.u = a
c.z = a
c.x = i
j.x = l
j.o = c
j.w = i
j.z = e
n.r = a
assert i.t.u.w.x.v.txt == "
class A:
    def __init__(self, txt: str):
        self.p: E = None
        self.y: G = None
        self.r: B = None
        self.z: C = None
        self.v: F = None
        self.u: G = None
        self.txt = txt

class B:
    def __init__(self, txt: str):
        self.w: G = None
        self.v: D = None
        self.p: E = None
        self.t: F = None
        self.txt = txt

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

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

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

class F:
    def __init__(self, txt: str):
        self.s: A = None
        self.p: D = None
        self.r: A = None
        self.o: D = None
        self.u: D = None
        self.x: B = None
        self.z: D = None
        self.txt = txt

class G:
    def __init__(self, txt: str):
        self.v: E = None
        self.txt = txt

h = A("h")
i = B("i")
f = C("f")
a = D("a")
e = E("e")
d = F("d")
l = G("l")
c = F("c")
j = C("j")
n = E("n")

h.p = e
h.y = l
h.u = l
h.r = i
h.z = j
h.v = c
i.w = l
i.v = a
i.p = n
i.t = d
f.x = l
f.o = c
f.w = i
f.z = e
a.x = n
a.u = h
a.o = h
a.w = f
e.r = a
d.s = h
d.r = h
d.p = a
d.o = a
d.u = a
d.z = a
d.x = i
l.v = n
c.s = h
c.r = h
c.p = a
c.o = a
c.u = a
c.z = a
c.x = i
j.x = l
j.o = c
j.w = i
j.z = e
n.r = a
assert i.t.u.w.x.v.txt == "n"