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

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

class C:
    def __init__(self, txt: str):
        self.o: C = None
        self.r: A = None
        self.s: G = None
        self.t: F = None
        self.v: B = None
        self.u: E = None
        self.q: G = None
        self.txt = txt

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

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

class F:
    def __init__(self, txt: str):
        self.q: C = None
        self.t: E = None
        self.z: B = None
        self.x: D = None
        self.s: E = None
        self.o: E = None
        self.txt = txt

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

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

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

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

class C:
    def __init__(self, txt: str):
        self.o: C = None
        self.r: A = None
        self.s: G = None
        self.t: F = None
        self.v: B = None
        self.u: E = None
        self.q: G = None
        self.txt = txt

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

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

class F:
    def __init__(self, txt: str):
        self.q: C = None
        self.t: E = None
        self.z: B = None
        self.x: D = None
        self.s: E = None
        self.o: E = None
        self.txt = txt

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

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

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