class A:
    def __init__(self, txt: str):
        self.o: D = None
        self.y: H = None
        self.z: F = None
        self.s: D = None
        self.p: E = None
        self.txt = txt

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

class C:
    def __init__(self, txt: str):
        self.p: A = None
        self.w: B = None
        self.x: I = None
        self.y: H = None
        self.u: D = None
        self.txt = txt

class D:
    def __init__(self, txt: str):
        self.u: A = None
        self.v: G = None
        self.s: F = None
        self.y: G = None
        self.x: I = None
        self.txt = txt

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

class F:
    def __init__(self, txt: str):
        self.z: I = None
        self.u: F = None
        self.r: H = None
        self.q: B = None
        self.txt = txt

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

class H:
    def __init__(self, txt: str):
        self.w: F = None
        self.txt = txt

class I:
    def __init__(self, txt: str):
        self.t: A = None
        self.s: F = None
        self.x: C = None
        self.v: H = None
        self.w: F = None
        self.txt = txt

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

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

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

class C:
    def __init__(self, txt: str):
        self.p: A = None
        self.w: B = None
        self.x: I = None
        self.y: H = None
        self.u: D = None
        self.txt = txt

class D:
    def __init__(self, txt: str):
        self.u: A = None
        self.v: G = None
        self.s: F = None
        self.y: G = None
        self.x: I = None
        self.txt = txt

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

class F:
    def __init__(self, txt: str):
        self.z: I = None
        self.u: F = None
        self.r: H = None
        self.q: B = None
        self.txt = txt

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

class H:
    def __init__(self, txt: str):
        self.w: F = None
        self.txt = txt

class I:
    def __init__(self, txt: str):
        self.t: A = None
        self.s: F = None
        self.x: C = None
        self.v: H = None
        self.w: F = None
        self.txt = txt

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

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