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

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

class C:
    def __init__(self, txt: str):
        self.w: G = None
        self.y: G = None
        self.r: G = None
        self.s: A = None
        self.u: B = None
        self.txt = txt

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

class E:
    def __init__(self, txt: str):
        self.q: B = None
        self.txt = txt

class F:
    def __init__(self, txt: str):
        self.w: D = None
        self.r: A = None
        self.z: C = None
        self.txt = txt

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

class H:
    def __init__(self, txt: str):
        self.o: A = None
        self.x: B = None
        self.r: B = None
        self.t: G = None
        self.w: E = None
        self.v: C = None
        self.y: A = None
        self.p: E = None
        self.s: E = None
        self.txt = txt

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

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

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

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

class C:
    def __init__(self, txt: str):
        self.w: G = None
        self.y: G = None
        self.r: G = None
        self.s: A = None
        self.u: B = None
        self.txt = txt

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

class E:
    def __init__(self, txt: str):
        self.q: B = None
        self.txt = txt

class F:
    def __init__(self, txt: str):
        self.w: D = None
        self.r: A = None
        self.z: C = None
        self.txt = txt

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

class H:
    def __init__(self, txt: str):
        self.o: A = None
        self.x: B = None
        self.r: B = None
        self.t: G = None
        self.w: E = None
        self.v: C = None
        self.y: A = None
        self.p: E = None
        self.s: E = None
        self.txt = txt

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

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

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