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

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

class C:
    def __init__(self, txt: str):
        self.v: E = None
        self.p: F = None
        self.q: I = None
        self.txt = txt

class D:
    def __init__(self, txt: str):
        self.p: A = None
        self.txt = txt

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

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

class G:
    def __init__(self, txt: str):
        self.w: D = None
        self.x: H = None
        self.t: I = None
        self.txt = txt

class H:
    def __init__(self, txt: str):
        self.q: B = None
        self.y: I = None
        self.o: E = None
        self.p: G = None
        self.w: B = None
        self.v: E = None
        self.x: G = None
        self.txt = txt

class I:
    def __init__(self, txt: str):
        self.o: B = None
        self.t: A = None
        self.txt = txt

e = A("e")
l = B("l")
c = C("c")
m = D("m")
b = E("b")
a = F("a")
n = G("n")
j = H("j")
f = I("f")

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

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

class C:
    def __init__(self, txt: str):
        self.v: E = None
        self.p: F = None
        self.q: I = None
        self.txt = txt

class D:
    def __init__(self, txt: str):
        self.p: A = None
        self.txt = txt

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

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

class G:
    def __init__(self, txt: str):
        self.w: D = None
        self.x: H = None
        self.t: I = None
        self.txt = txt

class H:
    def __init__(self, txt: str):
        self.q: B = None
        self.y: I = None
        self.o: E = None
        self.p: G = None
        self.w: B = None
        self.v: E = None
        self.x: G = None
        self.txt = txt

class I:
    def __init__(self, txt: str):
        self.o: B = None
        self.t: A = None
        self.txt = txt

e = A("e")
l = B("l")
c = C("c")
m = D("m")
b = E("b")
a = F("a")
n = G("n")
j = H("j")
f = I("f")

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