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

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

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

class D:
    def __init__(self, txt: str):
        self.x: B = None
        self.y: H = None
        self.s: A = None
        self.z: B = None
        self.r: A = None
        self.u: G = None
        self.v: B = None
        self.o: C = None
        self.txt = txt

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

class F:
    def __init__(self, txt: str):
        self.r: H = None
        self.o: D = None
        self.t: C = None
        self.p: H = None
        self.q: F = None
        self.y: G = None
        self.txt = txt

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

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

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

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

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

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

class D:
    def __init__(self, txt: str):
        self.x: B = None
        self.y: H = None
        self.s: A = None
        self.z: B = None
        self.r: A = None
        self.u: G = None
        self.v: B = None
        self.o: C = None
        self.txt = txt

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

class F:
    def __init__(self, txt: str):
        self.r: H = None
        self.o: D = None
        self.t: C = None
        self.p: H = None
        self.q: F = None
        self.y: G = None
        self.txt = txt

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

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

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

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