class A:
    def __init__(self, txt: str):
        self.z: C = None
        self.o: D = None
        self.s: I = None
        self.txt = txt

class B:
    def __init__(self, txt: str):
        self.p: I = None
        self.r: E = None
        self.q: C = None
        self.y: H = None
        self.s: C = None
        self.w: I = None
        self.txt = txt

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

class D:
    def __init__(self, txt: str):
        self.z: I = None
        self.r: F = None
        self.t: G = None
        self.v: I = None
        self.x: F = None
        self.w: I = None
        self.txt = txt

class E:
    def __init__(self, txt: str):
        self.v: F = None
        self.w: B = None
        self.o: I = None
        self.r: C = None
        self.txt = txt

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

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

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

class I:
    def __init__(self, txt: str):
        self.v: C = None
        self.w: B = None
        self.x: E = None
        self.y: E = None
        self.r: E = None
        self.q: B = None
        self.txt = txt

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

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

class B:
    def __init__(self, txt: str):
        self.p: I = None
        self.r: E = None
        self.q: C = None
        self.y: H = None
        self.s: C = None
        self.w: I = None
        self.txt = txt

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

class D:
    def __init__(self, txt: str):
        self.z: I = None
        self.r: F = None
        self.t: G = None
        self.v: I = None
        self.x: F = None
        self.w: I = None
        self.txt = txt

class E:
    def __init__(self, txt: str):
        self.v: F = None
        self.w: B = None
        self.o: I = None
        self.r: C = None
        self.txt = txt

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

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

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

class I:
    def __init__(self, txt: str):
        self.v: C = None
        self.w: B = None
        self.x: E = None
        self.y: E = None
        self.r: E = None
        self.q: B = None
        self.txt = txt

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

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