onna damma.. rep nam onamai...
class A{
public static void main(String[] args) {
String s = "1236";
int x,tot=0;
for(int i=0;i<s.length();i++){
char c = s.charAt(i);
String s1 = String.valueOf(c);
x = Integer.parseInt(s1);
tot = tot + x;
}
System.out.println(tot);
}
}