class A:
    def __init__(self, txt: str):
        self.u: E = None
        self.r: B = None
        self.w: E = 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.t: I = None
        self.x: I = None
        self.z: E = None
        self.y: F = None
        self.txt = txt

class D:
    def __init__(self, txt: str):
        self.u: A = None
        self.r: H = None
        self.t: H = None
        self.o: E = None
        self.x: E = None
        self.txt = txt

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

class F:
    def __init__(self, txt: str):
        self.w: B = None
        self.z: D = None
        self.t: A = None
        self.s: D = None
        self.r: B = None
        self.o: H = None
        self.x: H = None
        self.u: I = None
        self.txt = txt

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

class H:
    def __init__(self, txt: str):
        self.y: F = None
        self.w: I = None
        self.t: B = None
        self.q: D = None
        self.txt = txt

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

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

f.u = c
f.w = c
f.r = d
d.o = k
l.t = j
l.x = j
l.z = c
l.y = g
i.u = f
i.r = k
i.t = k
i.o = c
i.x = c
c.t = g
c.u = g
c.s = i
c.v = i
c.z = i
c.y = d
c.x = d
c.w = d
c.o = j
g.w = d
g.r = d
g.z = i
g.s = i
g.t = f
g.o = k
g.x = k
g.u = j
e.o = k
e.v = k
e.z = f
e.y = f
e.p = g
e.w = c
e.q = l
k.y = g
k.w = j
k.t = d
k.q = i
j.q = l
j.r = k
assert e.q.y.t.r.o.y.x.txt == "
class A:
    def __init__(self, txt: str):
        self.u: E = None
        self.r: B = None
        self.w: E = 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.t: I = None
        self.x: I = None
        self.z: E = None
        self.y: F = None
        self.txt = txt

class D:
    def __init__(self, txt: str):
        self.u: A = None
        self.r: H = None
        self.t: H = None
        self.o: E = None
        self.x: E = None
        self.txt = txt

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

class F:
    def __init__(self, txt: str):
        self.w: B = None
        self.z: D = None
        self.t: A = None
        self.s: D = None
        self.r: B = None
        self.o: H = None
        self.x: H = None
        self.u: I = None
        self.txt = txt

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

class H:
    def __init__(self, txt: str):
        self.y: F = None
        self.w: I = None
        self.t: B = None
        self.q: D = None
        self.txt = txt

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

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

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