class A:
    def __init__(self, txt: str):
        self.o: G = None
        self.x: I = None
        self.u: E = None
        self.y: I = None
        self.txt = txt

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

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

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

class E:
    def __init__(self, txt: str):
        self.s: B = None
        self.z: B = None
        self.u: F = None
        self.txt = txt

class F:
    def __init__(self, txt: str):
        self.o: H = None
        self.v: D = None
        self.y: B = None
        self.txt = txt

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

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

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

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

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

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

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

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

class E:
    def __init__(self, txt: str):
        self.s: B = None
        self.z: B = None
        self.u: F = None
        self.txt = txt

class F:
    def __init__(self, txt: str):
        self.o: H = None
        self.v: D = None
        self.y: B = None
        self.txt = txt

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

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

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

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

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