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

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

class C:
    def __init__(self, txt: str):
        self.y: F = None
        self.w: E = None
        self.x: F = None
        self.p: D = None
        self.r: A = None
        self.o: A = None
        self.txt = txt

class D:
    def __init__(self, txt: str):
        self.r: A = None
        self.y: E = None
        self.o: F = None
        self.txt = txt

class E:
    def __init__(self, txt: str):
        self.y: A = None
        self.p: C = None
        self.txt = txt

class F:
    def __init__(self, txt: str):
        self.s: C = None
        self.p: B = None
        self.txt = txt

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

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

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

class C:
    def __init__(self, txt: str):
        self.y: F = None
        self.w: E = None
        self.x: F = None
        self.p: D = None
        self.r: A = None
        self.o: A = None
        self.txt = txt

class D:
    def __init__(self, txt: str):
        self.r: A = None
        self.y: E = None
        self.o: F = None
        self.txt = txt

class E:
    def __init__(self, txt: str):
        self.y: A = None
        self.p: C = None
        self.txt = txt

class F:
    def __init__(self, txt: str):
        self.s: C = None
        self.p: B = None
        self.txt = txt

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

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