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

class B:
    def __init__(self, txt: str):
        self.r: E = None
        self.y: D = None
        self.q: D = None
        self.s: E = None
        self.t: E = None
        self.x: D = None
        self.p: C = None
        self.txt = txt

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

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

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

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

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

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

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

class B:
    def __init__(self, txt: str):
        self.r: E = None
        self.y: D = None
        self.q: D = None
        self.s: E = None
        self.t: E = None
        self.x: D = None
        self.p: C = None
        self.txt = txt

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

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

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

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

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

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

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