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

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

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

class D:
    def __init__(self, txt: str):
        self.o: B = None
        self.r: F = None
        self.x: G = None
        self.t: E = None
        self.u: B = None
        self.txt = txt

class E:
    def __init__(self, txt: str):
        self.q: B = None
        self.txt = txt

class F:
    def __init__(self, txt: str):
        self.s: E = None
        self.p: E = None
        self.v: A = None
        self.z: C = None
        self.u: D = None
        self.q: D = None
        self.txt = txt

class G:
    def __init__(self, txt: str):
        self.r: E = None
        self.y: G = None
        self.w: A = None
        self.txt = txt

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

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

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

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

class D:
    def __init__(self, txt: str):
        self.o: B = None
        self.r: F = None
        self.x: G = None
        self.t: E = None
        self.u: B = None
        self.txt = txt

class E:
    def __init__(self, txt: str):
        self.q: B = None
        self.txt = txt

class F:
    def __init__(self, txt: str):
        self.s: E = None
        self.p: E = None
        self.v: A = None
        self.z: C = None
        self.u: D = None
        self.q: D = None
        self.txt = txt

class G:
    def __init__(self, txt: str):
        self.r: E = None
        self.y: G = None
        self.w: A = None
        self.txt = txt

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

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