import java.io.IOException; import java.io.InputStream; import java.io.PrintWriter; import java.util.NoSuchElementException; import java.util.Random; public class Main { static PrintWriter out = new PrintWriter(System.out); static { Runtime.getRuntime().addShutdownHook(new Thread(out::flush)); } public static void main(String[] args) { FastScanner sc = new FastScanner(); char[] s = sc.next().toCharArray(); int ans = 200; if (s[0] == '_' || s[0] == '-' || s[s.length-1] == '_' || s[s.length-1] == '-') { ans = 400; } else if (s.length > 32) { ans = 400; }else { for (char c : s) { if (!(('0' <= c) && (c <= '9')) && !(('A' <= c) && (c <= 'Z')) && !(('a' <= c) && (c <= 'z')) && (c != '_') && (c != '-')) { ans = 400; break; } } } out.println(ans); } static long count(int l, int r, int d, int u) { long ans = 0; for (int x = l; x <= r; x++) { if (x < d || x%2 == 1) continue; if (u < x) { ans += u-d+1; continue; } ans += x-d+1; } for (int y = d; y <= u; y++) { if (y < l || y%2 == 1) continue; if (r < y) { ans += r-l+1; continue; } ans += y-l; } return ans; } static void printList(Iterable list) { boolean first = true; for (Object item : list) { if (!first) out.print(" "); out.print(item); first = false; } out.println(); } static void printArray(int[] a) { for (int i = 0; i < a.length; i++) { if (i > 0) out.print(" "); out.print(a[i]); } out.println(); } static void printArray(long[] a) { for (int i = 0; i < a.length; i++) { if (i > 0) out.print(" "); out.print(a[i]); } out.println(); } static void shuffle(int[] a) { Random random = new Random(); for (int i = a.length - 1; i > 0; i--) { int index = random.nextInt(i + 1); int temp = a[index]; a[index] = a[i]; a[i] = temp; } } static class BinarySearch { /* key以上の値がはじめてあらわれるインデックス (or a.length)*/ public static int lowerBound(int[] a, int key) { int ok = a.length; int ng = -1; while (Math.abs(ok - ng) > 1) { int mid = (ok + ng) / 2; if (a[mid] >= key) ok = mid; else ng = mid; } return ok; } /* keyより大きい値がはじめてあらわれるインデックス (or a.length)*/ public static int upperBound(int[] a, int key) { int ok = a.length; int ng = -1; while (Math.abs(ok - ng) > 1) { int mid = (ok + ng) / 2; if (a[mid] > key) ok = mid; else ng = mid; } return ok; } } static class FastScanner { private final InputStream in = System.in; private final byte[] buffer = new byte[1024]; private int ptr = 0; private int buflen = 0; private boolean hasNextByte() { if (ptr < buflen) { return true; }else{ ptr = 0; try { buflen = in.read(buffer); } catch (IOException e) { e.printStackTrace(); } return buflen > 0; } } private int readByte() { if (hasNextByte()) return buffer[ptr++]; else return -1;} private static boolean isPrintableChar(int c) { return 33 <= c && c <= 126;} public boolean hasNext() { while(hasNextByte() && !isPrintableChar(buffer[ptr])) ptr++; return hasNextByte();} public String next() { if (!hasNext()) throw new NoSuchElementException(); StringBuilder sb = new StringBuilder(); int b = readByte(); while(isPrintableChar(b)) { sb.appendCodePoint(b); b = readByte(); } return sb.toString(); } public long nextLong() { if (!hasNext()) throw new NoSuchElementException(); long n = 0; boolean minus = false; int b = readByte(); if (b == '-') { minus = true; b = readByte(); } if (b < '0' || '9' < b) { throw new NumberFormatException(); } while(true){ if ('0' <= b && b <= '9') { n *= 10; n += b - '0'; }else if(b == -1 || !isPrintableChar(b)){ return minus ? -n : n; }else{ throw new NumberFormatException(); } b = readByte(); } } public int nextInt() { if (!hasNext()) throw new NoSuchElementException(); int n = 0; boolean minus = false; int b = readByte(); if (b == '-') { minus = true; b = readByte(); } if (b < '0' || '9' < b) { throw new NumberFormatException(); } while(true){ if ('0' <= b && b <= '9') { n *= 10; n += b - '0'; }else if(b == -1 || !isPrintableChar(b)){ return minus ? -n : n; }else{ throw new NumberFormatException(); } b = readByte(); } } public double nextDouble() { return Double.parseDouble(next());} public int[] nextIntArray(int n) { int[] a = new int[n]; for (int i = 0; i < n; i++) a[i] = nextInt(); return a; } public long[] nextLongArray(int n) { long[] a = new long[n]; for (int i = 0; i < n; i++) a[i] = nextLong(); return a; } } }