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

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

class C:
    def __init__(self, txt: str):
        self.y: D = None
        self.u: A = None
        self.w: F = None
        self.x: E = None
        self.s: A = None
        self.t: E = None
        self.z: D = None
        self.txt = txt

class D:
    def __init__(self, txt: str):
        self.v: G = None
        self.x: D = None
        self.s: D = None
        self.o: A = None
        self.r: G = None
        self.w: G = None
        self.txt = txt

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

class F:
    def __init__(self, txt: str):
        self.y: E = None
        self.x: E = None
        self.w: D = None
        self.txt = txt

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

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

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

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

class C:
    def __init__(self, txt: str):
        self.y: D = None
        self.u: A = None
        self.w: F = None
        self.x: E = None
        self.s: A = None
        self.t: E = None
        self.z: D = None
        self.txt = txt

class D:
    def __init__(self, txt: str):
        self.v: G = None
        self.x: D = None
        self.s: D = None
        self.o: A = None
        self.r: G = None
        self.w: G = None
        self.txt = txt

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

class F:
    def __init__(self, txt: str):
        self.y: E = None
        self.x: E = None
        self.w: D = None
        self.txt = txt

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

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

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