class A:
    def __init__(self, txt: str):
        self.u: G = None
        self.v: F = None
        self.r: F = None
        self.txt = txt

class B:
    def __init__(self, txt: str):
        self.o: F = None
        self.r: F = None
        self.q: F = None
        self.u: E = None
        self.y: D = None
        self.z: E = None
        self.txt = txt

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

class D:
    def __init__(self, txt: str):
        self.t: E = None
        self.o: B = None
        self.z: A = None
        self.y: B = None
        self.txt = txt

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

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

class G:
    def __init__(self, txt: str):
        self.r: B = None
        self.s: C = None
        self.u: B = None
        self.txt = txt

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

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

class B:
    def __init__(self, txt: str):
        self.o: F = None
        self.r: F = None
        self.q: F = None
        self.u: E = None
        self.y: D = None
        self.z: E = None
        self.txt = txt

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

class D:
    def __init__(self, txt: str):
        self.t: E = None
        self.o: B = None
        self.z: A = None
        self.y: B = None
        self.txt = txt

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

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

class G:
    def __init__(self, txt: str):
        self.r: B = None
        self.s: C = None
        self.u: B = None
        self.txt = txt

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

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