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

class B:
    def __init__(self, txt: str):
        self.s: A = None
        self.t: C = None
        self.u: F = None
        self.z: F = None
        self.r: H = None
        self.txt = txt

class C:
    def __init__(self, txt: str):
        self.u: F = None
        self.s: A = None
        self.p: B = None
        self.x: G = None
        self.o: F = None
        self.r: G = None
        self.txt = txt

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

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

class F:
    def __init__(self, txt: str):
        self.z: C = None
        self.y: C = None
        self.txt = txt

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

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

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

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

class B:
    def __init__(self, txt: str):
        self.s: A = None
        self.t: C = None
        self.u: F = None
        self.z: F = None
        self.r: H = None
        self.txt = txt

class C:
    def __init__(self, txt: str):
        self.u: F = None
        self.s: A = None
        self.p: B = None
        self.x: G = None
        self.o: F = None
        self.r: G = None
        self.txt = txt

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

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

class F:
    def __init__(self, txt: str):
        self.z: C = None
        self.y: C = None
        self.txt = txt

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

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

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

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