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

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

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

class D:
    def __init__(self, txt: str):
        self.y: I = None
        self.s: E = None
        self.txt = txt

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

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

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

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

class I:
    def __init__(self, txt: str):
        self.z: E = None
        self.s: D = None
        self.x: H = None
        self.txt = txt

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

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

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

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

class D:
    def __init__(self, txt: str):
        self.y: I = None
        self.s: E = None
        self.txt = txt

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

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

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

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

class I:
    def __init__(self, txt: str):
        self.z: E = None
        self.s: D = None
        self.x: H = None
        self.txt = txt

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

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