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

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

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

class D:
    def __init__(self, txt: str):
        self.z: F = None
        self.o: A = None
        self.w: G = None
        self.txt = txt

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

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

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

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

h.u = i
h.r = i
h.x = n
h.o = n
h.v = n
h.w = k
h.q = e
b.w = h
b.s = h
b.p = n
b.z = n
b.y = n
b.o = k
b.r = i
e.o = i
e.x = i
e.r = n
e.z = n
e.u = k
e.s = b
k.z = i
k.o = h
k.w = g
n.s = b
n.y = k
n.z = g
i.x = g
i.p = g
i.s = b
i.v = k
i.u = e
i.z = n
g.s = b
g.x = n
g.u = e
g.v = h
g.q = h
g.t = k
assert k.o.x.z.v.txt == "
class A:
    def __init__(self, txt: str):
        self.u: F = None
        self.x: E = None
        self.w: D = None
        self.q: C = None
        self.o: E = None
        self.r: F = None
        self.v: E = None
        self.txt = txt

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

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

class D:
    def __init__(self, txt: str):
        self.z: F = None
        self.o: A = None
        self.w: G = None
        self.txt = txt

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

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

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

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

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