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

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

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

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

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

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

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

h = A("h")
e = B("e")
i = C("i")
g = D("g")
b = E("b")
c = F("c")
a = G("a")
f = C("f")
l = A("l")
d = F("d")

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

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

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

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

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

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

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

h = A("h")
e = B("e")
i = C("i")
g = D("g")
b = E("b")
c = F("c")
a = G("a")
f = C("f")
l = A("l")
d = F("d")

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