class A:
    def __init__(self, txt: str):
        self.q: H = None
        self.t: F = None
        self.w: C = None
        self.p: G = None
        self.txt = txt

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

class C:
    def __init__(self, txt: str):
        self.s: G = None
        self.txt = txt

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

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

class F:
    def __init__(self, txt: str):
        self.v: A = None
        self.z: B = None
        self.x: E = None
        self.txt = txt

class G:
    def __init__(self, txt: str):
        self.w: B = None
        self.r: I = None
        self.txt = txt

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

class I:
    def __init__(self, txt: str):
        self.u: B = None
        self.p: B = None
        self.txt = txt

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

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

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

class C:
    def __init__(self, txt: str):
        self.s: G = None
        self.txt = txt

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

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

class F:
    def __init__(self, txt: str):
        self.v: A = None
        self.z: B = None
        self.x: E = None
        self.txt = txt

class G:
    def __init__(self, txt: str):
        self.w: B = None
        self.r: I = None
        self.txt = txt

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

class I:
    def __init__(self, txt: str):
        self.u: B = None
        self.p: B = None
        self.txt = txt

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

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