class A:
    def __init__(self, txt: str):
        self.v: E = None
        self.s: G = None
        self.r: E = None
        self.w: F = None
        self.z: B = None
        self.txt = txt

class B:
    def __init__(self, txt: str):
        self.t: G = None
        self.txt = txt

class C:
    def __init__(self, txt: str):
        self.r: F = None
        self.t: H = None
        self.q: B = None
        self.txt = txt

class D:
    def __init__(self, txt: str):
        self.p: F = None
        self.z: I = None
        self.s: B = None
        self.txt = txt

class E:
    def __init__(self, txt: str):
        self.x: D = None
        self.v: H = None
        self.t: B = None
        self.txt = txt

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

class G:
    def __init__(self, txt: str):
        self.o: B = None
        self.u: B = None
        self.t: E = None
        self.txt = txt

class H:
    def __init__(self, txt: str):
        self.p: F = None
        self.s: E = None
        self.t: D = None
        self.w: I = None
        self.r: E = None
        self.z: A = None
        self.x: E = None
        self.o: C = None
        self.txt = txt

class I:
    def __init__(self, txt: str):
        self.x: G = None
        self.w: B = None
        self.y: F = None
        self.z: C = None
        self.q: A = None
        self.p: E = None
        self.r: A = None
        self.u: C = None
        self.v: B = None
        self.txt = txt

l = A("l")
g = B("g")
c = C("c")
k = D("k")
i = E("i")
d = F("d")
m = G("m")
e = H("e")
a = I("a")

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

class B:
    def __init__(self, txt: str):
        self.t: G = None
        self.txt = txt

class C:
    def __init__(self, txt: str):
        self.r: F = None
        self.t: H = None
        self.q: B = None
        self.txt = txt

class D:
    def __init__(self, txt: str):
        self.p: F = None
        self.z: I = None
        self.s: B = None
        self.txt = txt

class E:
    def __init__(self, txt: str):
        self.x: D = None
        self.v: H = None
        self.t: B = None
        self.txt = txt

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

class G:
    def __init__(self, txt: str):
        self.o: B = None
        self.u: B = None
        self.t: E = None
        self.txt = txt

class H:
    def __init__(self, txt: str):
        self.p: F = None
        self.s: E = None
        self.t: D = None
        self.w: I = None
        self.r: E = None
        self.z: A = None
        self.x: E = None
        self.o: C = None
        self.txt = txt

class I:
    def __init__(self, txt: str):
        self.x: G = None
        self.w: B = None
        self.y: F = None
        self.z: C = None
        self.q: A = None
        self.p: E = None
        self.r: A = None
        self.u: C = None
        self.v: B = None
        self.txt = txt

l = A("l")
g = B("g")
c = C("c")
k = D("k")
i = E("i")
d = F("d")
m = G("m")
e = H("e")
a = I("a")

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