class A:
    def __init__(self, txt: str):
        self.t: E = None
        self.txt = txt

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

class C:
    def __init__(self, txt: str):
        self.w: G = None
        self.v: D = None
        self.x: H = None
        self.q: B = None
        self.r: F = None
        self.o: H = None
        self.txt = txt

class D:
    def __init__(self, txt: str):
        self.v: B = None
        self.u: F = None
        self.s: F = None
        self.q: I = None
        self.r: G = None
        self.y: F = None
        self.z: I = None
        self.txt = txt

class E:
    def __init__(self, txt: str):
        self.x: F = None
        self.s: B = None
        self.u: G = None
        self.w: G = None
        self.t: F = None
        self.z: B = None
        self.v: I = None
        self.o: B = None
        self.q: G = None
        self.txt = txt

class F:
    def __init__(self, txt: str):
        self.o: G = None
        self.x: C = None
        self.t: H = None
        self.z: H = None
        self.v: I = None
        self.txt = txt

class G:
    def __init__(self, txt: str):
        self.y: D = None
        self.w: D = None
        self.p: B = None
        self.x: G = None
        self.u: E = None
        self.t: D = None
        self.txt = txt

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

class I:
    def __init__(self, txt: str):
        self.p: B = None
        self.v: F = None
        self.w: F = None
        self.q: D = None
        self.txt = txt

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

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

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

class C:
    def __init__(self, txt: str):
        self.w: G = None
        self.v: D = None
        self.x: H = None
        self.q: B = None
        self.r: F = None
        self.o: H = None
        self.txt = txt

class D:
    def __init__(self, txt: str):
        self.v: B = None
        self.u: F = None
        self.s: F = None
        self.q: I = None
        self.r: G = None
        self.y: F = None
        self.z: I = None
        self.txt = txt

class E:
    def __init__(self, txt: str):
        self.x: F = None
        self.s: B = None
        self.u: G = None
        self.w: G = None
        self.t: F = None
        self.z: B = None
        self.v: I = None
        self.o: B = None
        self.q: G = None
        self.txt = txt

class F:
    def __init__(self, txt: str):
        self.o: G = None
        self.x: C = None
        self.t: H = None
        self.z: H = None
        self.v: I = None
        self.txt = txt

class G:
    def __init__(self, txt: str):
        self.y: D = None
        self.w: D = None
        self.p: B = None
        self.x: G = None
        self.u: E = None
        self.t: D = None
        self.txt = txt

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

class I:
    def __init__(self, txt: str):
        self.p: B = None
        self.v: F = None
        self.w: F = None
        self.q: D = None
        self.txt = txt

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

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