class A:
    def __init__(self, txt: str):
        self.r: G = None
        self.t: B = None
        self.o: D = None
        self.y: D = None
        self.s: B = None
        self.txt = txt

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

class C:
    def __init__(self, txt: str):
        self.t: F = None
        self.u: G = None
        self.x: E = None
        self.r: A = None
        self.o: G = None
        self.v: E = None
        self.txt = txt

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

class E:
    def __init__(self, txt: str):
        self.y: C = None
        self.v: B = None
        self.q: B = None
        self.txt = txt

class F:
    def __init__(self, txt: str):
        self.s: B = None
        self.z: G = None
        self.w: D = None
        self.txt = txt

class G:
    def __init__(self, txt: str):
        self.v: D = None
        self.q: D = None
        self.r: A = None
        self.t: A = None
        self.txt = txt

b = A("b")
k = B("k")
e = C("e")
g = D("g")
h = E("h")
l = F("l")
m = G("m")
f = A("f")

b.r = m
b.t = k
b.s = k
b.o = g
b.y = g
k.p = g
k.w = h
k.v = h
k.x = l
e.t = l
e.u = m
e.o = m
e.x = h
e.v = h
e.r = f
g.t = m
g.s = m
g.y = k
g.r = k
g.z = b
g.u = b
g.p = h
h.y = e
h.v = k
h.q = k
l.s = k
l.z = m
l.w = g
m.v = g
m.q = g
m.r = f
m.t = b
f.r = m
f.t = k
f.s = k
f.o = g
f.y = g
assert b.y.r.w.y.t.w.txt == "
class A:
    def __init__(self, txt: str):
        self.r: G = None
        self.t: B = None
        self.o: D = None
        self.y: D = None
        self.s: B = None
        self.txt = txt

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

class C:
    def __init__(self, txt: str):
        self.t: F = None
        self.u: G = None
        self.x: E = None
        self.r: A = None
        self.o: G = None
        self.v: E = None
        self.txt = txt

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

class E:
    def __init__(self, txt: str):
        self.y: C = None
        self.v: B = None
        self.q: B = None
        self.txt = txt

class F:
    def __init__(self, txt: str):
        self.s: B = None
        self.z: G = None
        self.w: D = None
        self.txt = txt

class G:
    def __init__(self, txt: str):
        self.v: D = None
        self.q: D = None
        self.r: A = None
        self.t: A = None
        self.txt = txt

b = A("b")
k = B("k")
e = C("e")
g = D("g")
h = E("h")
l = F("l")
m = G("m")
f = A("f")

b.r = m
b.t = k
b.s = k
b.o = g
b.y = g
k.p = g
k.w = h
k.v = h
k.x = l
e.t = l
e.u = m
e.o = m
e.x = h
e.v = h
e.r = f
g.t = m
g.s = m
g.y = k
g.r = k
g.z = b
g.u = b
g.p = h
h.y = e
h.v = k
h.q = k
l.s = k
l.z = m
l.w = g
m.v = g
m.q = g
m.r = f
m.t = b
f.r = m
f.t = k
f.s = k
f.o = g
f.y = g
assert b.y.r.w.y.t.w.txt == "g"