import java.lang.*;
import java.io.*;
import java.util.*;
class Main {
Scanner s
= new Scanner
(System.
in);
int flag = 0;
int pl = 0;
while (s.hasNext()) {
switch (flag) {
case 0:
if (s.hasNextInt()) {
pl = s.nextInt();
}
flag = 1;
break;
case 1:
c = s.next().toUpperCase();
if ("LET".equals(c)) {
flag = 2;
} else if ("PRINT".equals(c)) {
}
break;
case 2:
var = s.next().toUpperCase();
flag = 3;
break;
case 3:
if (!"=".equals(s.next())) {
System.
out.
println("Syntax Error"); return;
}
flag = 4;
break;
default:
s.next();
break;
}
}
}
}
aW1wb3J0IGphdmEubGFuZy4qOwppbXBvcnQgamF2YS5pby4qOwppbXBvcnQgamF2YS51dGlsLio7CgpjbGFzcyBNYWluIHsKCQoJcHVibGljIHN0YXRpYyB2b2lkIG1haW4oU3RyaW5nW10gYXJncykgdGhyb3dzIGphdmEubGFuZy5FeGNlcHRpb24gewoJCVNjYW5uZXIgcyA9IG5ldyBTY2FubmVyKFN5c3RlbS5pbik7CgkJCgkJU3RyaW5nIGMsIHZhcjsKCQlpbnQgZmxhZyA9IDA7CgkJaW50IHBsID0gMDsKCQkKCQl3aGlsZSAocy5oYXNOZXh0KCkpIHsKCQkJc3dpdGNoIChmbGFnKSB7CgkJCWNhc2UgMDoKCQkJCWlmIChzLmhhc05leHRJbnQoKSkgewoJCQkJCXBsID0gcy5uZXh0SW50KCk7CQoJCQkJfQoJCQkJZmxhZyA9IDE7CgkJCQlicmVhazsKCQkJY2FzZSAxOgoJCQkJYyA9IHMubmV4dCgpLnRvVXBwZXJDYXNlKCk7CgkJCQlpZiAoIkxFVCIuZXF1YWxzKGMpKSB7CgkJCQkJZmxhZyA9IDI7CgkJCQl9IGVsc2UgaWYgKCJQUklOVCIuZXF1YWxzKGMpKSB7CgkJCQkJCgkJCQl9CgkJCQlicmVhazsKCQkJY2FzZSAyOgoJCQkJdmFyID0gcy5uZXh0KCkudG9VcHBlckNhc2UoKTsKCQkJCWZsYWcgPSAzOwoJCQkJYnJlYW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