class A:
    def __init__(self, txt: str):
        self.t: G = None
        self.v: E = None
        self.o: G = None
        self.q: E = None
        self.p: E = None
        self.r: E = None
        self.y: G = None
        self.u: A = None
        self.txt = txt

class B:
    def __init__(self, txt: str):
        self.p: F = None
        self.t: F = None
        self.x: F = None
        self.v: H = None
        self.s: C = None
        self.y: H = None
        self.q: E = None
        self.txt = txt

class C:
    def __init__(self, txt: str):
        self.v: A = None
        self.p: G = None
        self.o: A = None
        self.r: G = None
        self.txt = txt

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

class E:
    def __init__(self, txt: str):
        self.q: F = None
        self.y: H = None
        self.txt = txt

class F:
    def __init__(self, txt: str):
        self.r: C = None
        self.p: H = None
        self.w: H = None
        self.t: G = None
        self.txt = txt

class G:
    def __init__(self, txt: str):
        self.p: B = None
        self.y: B = None
        self.q: H = None
        self.x: E = None
        self.txt = txt

class H:
    def __init__(self, txt: str):
        self.s: A = None
        self.u: A = None
        self.v: A = None
        self.q: A = None
        self.w: D = None
        self.txt = txt

n = A("n")
l = B("l")
e = C("e")
f = D("f")
c = E("c")
j = F("j")
i = G("i")
k = H("k")
b = G("b")
m = A("m")

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

class B:
    def __init__(self, txt: str):
        self.p: F = None
        self.t: F = None
        self.x: F = None
        self.v: H = None
        self.s: C = None
        self.y: H = None
        self.q: E = None
        self.txt = txt

class C:
    def __init__(self, txt: str):
        self.v: A = None
        self.p: G = None
        self.o: A = None
        self.r: G = None
        self.txt = txt

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

class E:
    def __init__(self, txt: str):
        self.q: F = None
        self.y: H = None
        self.txt = txt

class F:
    def __init__(self, txt: str):
        self.r: C = None
        self.p: H = None
        self.w: H = None
        self.t: G = None
        self.txt = txt

class G:
    def __init__(self, txt: str):
        self.p: B = None
        self.y: B = None
        self.q: H = None
        self.x: E = None
        self.txt = txt

class H:
    def __init__(self, txt: str):
        self.s: A = None
        self.u: A = None
        self.v: A = None
        self.q: A = None
        self.w: D = None
        self.txt = txt

n = A("n")
l = B("l")
e = C("e")
f = D("f")
c = E("c")
j = F("j")
i = G("i")
k = H("k")
b = G("b")
m = A("m")

n.t = i
n.o = i
n.y = i
n.v = c
n.q = c
n.p = c
n.r = c
n.u = m
l.p = j
l.t = j
l.x = j
l.v = k
l.y = k
l.s = e
l.q = c
e.v = m
e.p = b
e.o = n
e.r = i
f.t = m
c.q = j
c.y = k
j.r = e
j.p = k
j.w = k
j.t = b
i.p = l
i.y = l
i.q = k
i.x = c
k.s = m
k.u = m
k.v = m
k.q = m
k.w = f
b.p = l
b.y = l
b.q = k
b.x = c
m.t = i
m.o = i
m.v = c
m.q = c
m.p = c
m.r = c
m.y = b
m.u = n
assert l.x.r.p.txt == "b"