class A:
    def __init__(self, txt: str):
        self.w: H = None
        self.y: C = None
        self.p: F = None
        self.q: G = None
        self.v: C = None
        self.txt = txt

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

class C:
    def __init__(self, txt: str):
        self.r: H = None
        self.s: E = None
        self.v: F = None
        self.w: G = None
        self.o: H = None
        self.u: H = None
        self.txt = txt

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

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

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

class G:
    def __init__(self, txt: str):
        self.p: C = None
        self.z: E = None
        self.u: C = None
        self.txt = txt

class H:
    def __init__(self, txt: str):
        self.z: B = None
        self.txt = txt

class I:
    def __init__(self, txt: str):
        self.v: E = None
        self.s: C = None
        self.q: D = None
        self.u: H = None
        self.txt = txt

l = A("l")
b = B("b")
e = C("e")
n = D("n")
c = E("c")
f = F("f")
g = G("g")
d = H("d")
k = I("k")

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

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

class C:
    def __init__(self, txt: str):
        self.r: H = None
        self.s: E = None
        self.v: F = None
        self.w: G = None
        self.o: H = None
        self.u: H = None
        self.txt = txt

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

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

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

class G:
    def __init__(self, txt: str):
        self.p: C = None
        self.z: E = None
        self.u: C = None
        self.txt = txt

class H:
    def __init__(self, txt: str):
        self.z: B = None
        self.txt = txt

class I:
    def __init__(self, txt: str):
        self.v: E = None
        self.s: C = None
        self.q: D = None
        self.u: H = None
        self.txt = txt

l = A("l")
b = B("b")
e = C("e")
n = D("n")
c = E("c")
f = F("f")
g = G("g")
d = H("d")
k = I("k")

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