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

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

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

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

class E:
    def __init__(self, txt: str):
        self.u: I = None
        self.w: D = None
        self.p: G = None
        self.txt = txt

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

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

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

class I:
    def __init__(self, txt: str):
        self.o: H = None
        self.txt = txt

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

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

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

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

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

class E:
    def __init__(self, txt: str):
        self.u: I = None
        self.w: D = None
        self.p: G = None
        self.txt = txt

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

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

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

class I:
    def __init__(self, txt: str):
        self.o: H = None
        self.txt = txt

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

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