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

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

class C:
    def __init__(self, txt: str):
        self.x: H = None
        self.t: G = None
        self.r: G = None
        self.p: H = None
        self.txt = txt

class D:
    def __init__(self, txt: str):
        self.u: I = None
        self.z: G = None
        self.w: E = None
        self.t: E = None
        self.r: C = None
        self.txt = txt

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

class F:
    def __init__(self, txt: str):
        self.y: E = None
        self.t: D = None
        self.v: G = None
        self.txt = txt

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

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

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

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

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

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

class C:
    def __init__(self, txt: str):
        self.x: H = None
        self.t: G = None
        self.r: G = None
        self.p: H = None
        self.txt = txt

class D:
    def __init__(self, txt: str):
        self.u: I = None
        self.z: G = None
        self.w: E = None
        self.t: E = None
        self.r: C = None
        self.txt = txt

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

class F:
    def __init__(self, txt: str):
        self.y: E = None
        self.t: D = None
        self.v: G = None
        self.txt = txt

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

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

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

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

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