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

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

class C:
    def __init__(self, txt: str):
        self.x: B = None
        self.v: A = None
        self.y: G = None
        self.txt = txt

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

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

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

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

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

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

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

class C:
    def __init__(self, txt: str):
        self.x: B = None
        self.v: A = None
        self.y: G = None
        self.txt = txt

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

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

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

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

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

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